mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 04:04:25 +08:00
'0421'
This commit is contained in:
parent
5d5611b4af
commit
fdfd6d6cf1
@ -21,7 +21,7 @@ bodavm.memory.document={
|
||||
documentURI:"${document.documentURI}",
|
||||
compatMode:"${document.compatMode}",
|
||||
dir:"${document.dir}",
|
||||
title:"${document.title}",
|
||||
title:'${document.title}',
|
||||
designMode:"${document.designMode}",
|
||||
readyState:"${document.readyState}",
|
||||
contentType:"${document.contentType}",
|
||||
@ -103,11 +103,23 @@ bodavm.memory.window={
|
||||
onblur:${onblur},
|
||||
oncancel:${oncancel},
|
||||
oncanplay:${oncanplay},
|
||||
oncanplaythrough:${oncanplaythrough}
|
||||
oncanplaythrough:${oncanplaythrough},
|
||||
onsearch:${onsearch},
|
||||
opener:${opener},
|
||||
frameElement:${frameElement},
|
||||
|
||||
|
||||
};
|
||||
bodavm.memory.localStorage={}
|
||||
|
||||
bodavm.memory.Performance={
|
||||
'getEntriesByType':${JSON.stringify(performance.getEntriesByType('resource'))},
|
||||
'timeOrigin':${performance.timeOrigin}
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
`
|
||||
|
||||
copy(aaaaaa)
|
File diff suppressed because one or more lines are too long
@ -6,6 +6,7 @@ let mylist2 = ''
|
||||
let name_ = []
|
||||
function getFile(name) {
|
||||
try {
|
||||
// name_.push(name)
|
||||
return fs.readFileSync(`${env_path}/${name}.js`) + "\r\n";
|
||||
|
||||
} catch (e) {
|
||||
@ -20,6 +21,7 @@ function getHtmlElement() {
|
||||
let filelist = fs.readdirSync(`${env_path}/htmlElements`)
|
||||
for (let i = 0; i < filelist.length; i++) {
|
||||
code += fs.readFileSync(`${env_path}/htmlElements/${filelist[i]}`) + "\r\n"
|
||||
// name_.push(filelist[i])
|
||||
|
||||
}
|
||||
return code
|
||||
@ -36,6 +38,7 @@ function getCode() {
|
||||
code += getFile("WindowProperties")
|
||||
code += getFile("Window")
|
||||
code += getFile("Node")
|
||||
code +=getFile('StorageManager')
|
||||
code += getFile("Element")
|
||||
code += getFile("HTMLElement")
|
||||
code += getFile("HTMLCollection")
|
||||
@ -64,6 +67,8 @@ function getCode() {
|
||||
code += getFile("CanvasRenderingContext2D")
|
||||
code += getFile("WebGLRenderingContext")
|
||||
code += getFile("MediaQueryList")
|
||||
|
||||
// code += getFile("matchMedia")
|
||||
code += getFile("CSSRuleList")
|
||||
code += getFile('Attr')
|
||||
code += getFile('Option')
|
||||
@ -118,6 +123,7 @@ function getCode() {
|
||||
code += getFile('ScreenOrientation')
|
||||
code += getFile("PerformanceEntry")
|
||||
code += getFile("PerformancePaintTiming")
|
||||
code +=getFile("PerformanceResourceTiming")
|
||||
code += getFile("Permissions")
|
||||
code += getFile("PermissionStatus")
|
||||
code += getFile("Request")
|
||||
@ -152,7 +158,8 @@ function getCode() {
|
||||
code += getFile("XMLHttpRequest")
|
||||
|
||||
// code += getFile("globalThis") //全局环境放在最后
|
||||
|
||||
// console.log('name_',name_)
|
||||
// debugger
|
||||
return code
|
||||
}
|
||||
module.exports = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
const fs=require("fs");
|
||||
const path = require("path");
|
||||
var fs=require("fs");
|
||||
var path = require("path");
|
||||
|
||||
|
||||
function getFile(name) {
|
||||
@ -18,7 +18,7 @@ function getCode(){
|
||||
let code=""
|
||||
code+=getFile("toolsFunc")
|
||||
// code+=getFile("toolsJsSoup")
|
||||
code+=getFile("toolsParseHtml")
|
||||
// code+=getFile("toolsParseHtml")
|
||||
code+=getFile("envFunc")
|
||||
code+=getFile("toolsPlugin")
|
||||
return code
|
||||
|
6
env_xbb_lastest_jsdom/env/Attr.js
vendored
6
env_xbb_lastest_jsdom/env/Attr.js
vendored
@ -1,7 +1,9 @@
|
||||
// Attr对象
|
||||
bodavm.memory.globalobj['Attr'] = function Attr(){
|
||||
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")
|
||||
// this.isinit=bodavm.config.isinit
|
||||
}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Attr'], "Attr");
|
||||
bodavm.memory.globalobj['Attr'].prototype.__proto__=bodavm.memory.globalobj['Node'].prototype;
|
||||
bodavm.memory.globalobj['Attr'].__proto__=bodavm.memory.globalobj['Node'];
|
||||
|
2
env_xbb_lastest_jsdom/env/Audio.js
vendored
2
env_xbb_lastest_jsdom/env/Audio.js
vendored
@ -4,7 +4,7 @@ bodavm.memory.globalobj['Audio'] = function Audio(){
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Audio': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
||||
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Audio'], "Audio");
|
||||
bodavm.memory.globalobj['Audio'].prototype.__proto__=bodavm.memory.globalobj['HTMLMediaElement'].prototype;
|
||||
|
16
env_xbb_lastest_jsdom/env/BarProp.js
vendored
16
env_xbb_lastest_jsdom/env/BarProp.js
vendored
@ -1,25 +1,27 @@
|
||||
// BarProp对象
|
||||
bodavm.memory.globalobj['BarProp'] = function BarProp(){
|
||||
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['BarProp'], "BarProp");
|
||||
bodavm.toolsFunc.defineProperty('BarProp', "visible", {configurable:true, enumerable:true, get:function visible (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['BarProp'].prototype, "BarProp", "visible_get", arguments)}, set:undefined},'prototype');
|
||||
|
||||
// locationbar对象
|
||||
bodavm.memory.globalobj['locationbar'] = {}
|
||||
bodavm.memory.globalobj['locationbar'] = {
|
||||
_boisinit:bodavm.config.isinit
|
||||
}
|
||||
bodavm.memory.globalobj['locationbar'].__proto__=bodavm.memory.globalobj['BarProp'].prototype;
|
||||
|
||||
bodavm.memory.globalobj['menubar'] ={}
|
||||
bodavm.memory.globalobj['menubar'] ={ _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj['menubar'].__proto__= bodavm.memory.globalobj['BarProp'].prototype;
|
||||
|
||||
bodavm.memory.globalobj['statusbar'] ={}
|
||||
bodavm.memory.globalobj['statusbar'] ={ _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj['statusbar'].__proto__=bodavm.memory.globalobj['BarProp'].prototype
|
||||
|
||||
bodavm.memory.globalobj['toolbar'] ={}
|
||||
bodavm.memory.globalobj['toolbar'] ={ _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj['toolbar'].__proto__=bodavm.memory.globalobj['BarProp'].prototype
|
||||
|
||||
bodavm.memory.globalobj['personalbar'] ={}
|
||||
bodavm.memory.globalobj['personalbar'] ={ _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj['personalbar'].__proto__=bodavm.memory.globalobj['BarProp'].prototype
|
||||
|
||||
bodavm.memory.globalobj['scrollbars'] ={}
|
||||
bodavm.memory.globalobj['scrollbars'] ={ _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj['scrollbars'].__proto__=bodavm.memory.globalobj['BarProp'].prototype
|
@ -1,5 +1,5 @@
|
||||
// BaseAudioContext对象
|
||||
bodavm.memory.globalobj['BaseAudioContext'] = function BaseAudioContext(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['BaseAudioContext'] = function BaseAudioContext(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['BaseAudioContext'], "BaseAudioContext");
|
||||
bodavm.memory.globalobj['BaseAudioContext'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['BaseAudioContext'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
2
env_xbb_lastest_jsdom/env/BatteryManager.js
vendored
2
env_xbb_lastest_jsdom/env/BatteryManager.js
vendored
@ -1,5 +1,5 @@
|
||||
// BatteryManager对象
|
||||
bodavm.memory.globalobj['BatteryManager'] = function BatteryManager(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['BatteryManager'] = function BatteryManager(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['BatteryManager'], "BatteryManager");
|
||||
bodavm.memory.globalobj['BatteryManager'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['BatteryManager'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
@ -4,7 +4,7 @@ bodavm.memory.globalobj['BeforeInstallPromptEvent'] = function BeforeInstallProm
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'BeforeInstallPromptEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}
|
||||
if (arguments.length <1){
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'BeforeInstallPromptEvent': 1 argument required, but only 0 present.")}
|
||||
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
}
|
||||
|
||||
|
||||
|
2
env_xbb_lastest_jsdom/env/Bluetooth.js
vendored
2
env_xbb_lastest_jsdom/env/Bluetooth.js
vendored
@ -1,5 +1,5 @@
|
||||
// Bluetooth对象
|
||||
bodavm.memory.globalobj['Bluetooth'] = function Bluetooth(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Bluetooth'] = function Bluetooth(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Bluetooth'], "Bluetooth");
|
||||
bodavm.memory.globalobj['Bluetooth'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['Bluetooth'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
2
env_xbb_lastest_jsdom/env/BluetoothUUID.js
vendored
2
env_xbb_lastest_jsdom/env/BluetoothUUID.js
vendored
@ -1,5 +1,5 @@
|
||||
// BluetoothUUID对象
|
||||
bodavm.memory.globalobj['BluetoothUUID'] = function BluetoothUUID(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['BluetoothUUID'] = function BluetoothUUID(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['BluetoothUUID'], "BluetoothUUID");
|
||||
bodavm.toolsFunc.defineProperty('BluetoothUUID', "canonicalUUID", {configurable:true, enumerable:true, writable:true, value:function canonicalUUID (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['BluetoothUUID'].prototype, "BluetoothUUID", "canonicalUUID", arguments)}});
|
||||
bodavm.toolsFunc.defineProperty('BluetoothUUID', "getCharacteristic", {configurable:true, enumerable:true, writable:true, value:function getCharacteristic (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['BluetoothUUID'].prototype, "BluetoothUUID", "getCharacteristic", arguments)}});
|
||||
|
2
env_xbb_lastest_jsdom/env/CDATASection.js
vendored
2
env_xbb_lastest_jsdom/env/CDATASection.js
vendored
@ -1,5 +1,5 @@
|
||||
// CDATASection对象
|
||||
bodavm.memory.globalobj['CDATASection'] = function CDATASection(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['CDATASection'] = function CDATASection(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CDATASection'], "CDATASection");
|
||||
bodavm.memory.globalobj['CDATASection'].prototype.__proto__=bodavm.memory.globalobj['Text'].prototype;
|
||||
bodavm.memory.globalobj['CDATASection'].__proto__=bodavm.memory.globalobj['Text'];
|
||||
|
2
env_xbb_lastest_jsdom/env/CSS.js
vendored
2
env_xbb_lastest_jsdom/env/CSS.js
vendored
@ -1,6 +1,6 @@
|
||||
// CSS对象
|
||||
|
||||
bodavm.memory.globalobj['CSS'] = {}
|
||||
bodavm.memory.globalobj['CSS'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.toolsFunc.defineProperty('CSS' , "Hz", {configurable:true, enumerable:true, writable:true, value:function Hz (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CSS'], "CSS", "Hz", arguments)}});
|
||||
bodavm.toolsFunc.defineProperty('CSS' , "Q", {configurable:true, enumerable:true, writable:true, value:function Q (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CSS'], "CSS", "Q", arguments)}});
|
||||
bodavm.toolsFunc.defineProperty('CSS' , "ch", {configurable:true, enumerable:true, writable:true, value:function ch (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CSS'], "CSS", "ch", arguments)}});
|
||||
|
2
env_xbb_lastest_jsdom/env/CSSRuleList.js
vendored
2
env_xbb_lastest_jsdom/env/CSSRuleList.js
vendored
@ -1,5 +1,5 @@
|
||||
// CSSRuleList对象
|
||||
bodavm.memory.globalobj['CSSRuleList'] = function CSSRuleList(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['CSSRuleList'] = function CSSRuleList(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CSSRuleList'], "CSSRuleList");
|
||||
bodavm.toolsFunc.defineProperty('CSSRuleList', "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CSSRuleList'].prototype, "CSSRuleList", "length_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('CSSRuleList', "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CSSRuleList'].prototype, "CSSRuleList", "item", arguments)}},'prototype');
|
||||
|
@ -1,5 +1,5 @@
|
||||
// CSSStyleDeclaration对象
|
||||
bodavm.memory.globalobj['CSSStyleDeclaration'] = function CSSStyleDeclaration(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['CSSStyleDeclaration'] = function CSSStyleDeclaration(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CSSStyleDeclaration'], "CSSStyleDeclaration");
|
||||
bodavm.toolsFunc.defineProperty('CSSStyleDeclaration', "cssText", {configurable:true, enumerable:true, get:function cssText (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CSSStyleDeclaration'].prototype, "CSSStyleDeclaration", "cssText_get", arguments)}, set:function cssText (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CSSStyleDeclaration'].prototype, "CSSStyleDeclaration", "cssText_set", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('CSSStyleDeclaration', "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CSSStyleDeclaration'].prototype, "CSSStyleDeclaration", "length_get", arguments)}, set:undefined},'prototype');
|
||||
|
4
env_xbb_lastest_jsdom/env/CacheStorage.js
vendored
4
env_xbb_lastest_jsdom/env/CacheStorage.js
vendored
@ -1,5 +1,5 @@
|
||||
// CacheStorage对象
|
||||
bodavm.memory.globalobj['CacheStorage'] = function CacheStorage(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['CacheStorage'] = function CacheStorage(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CacheStorage'], "CacheStorage");
|
||||
bodavm.toolsFunc.defineProperty('CacheStorage', "delete", {configurable:true, enumerable:true, writable:true, value:function (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CacheStorage'].prototype, "CacheStorage", "delete", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('CacheStorage', "has", {configurable:true, enumerable:true, writable:true, value:function has (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CacheStorage'].prototype, "CacheStorage", "has", arguments)}},'prototype');
|
||||
@ -7,5 +7,5 @@ bodavm.toolsFunc.defineProperty('CacheStorage', "keys", {configurable:true, enum
|
||||
bodavm.toolsFunc.defineProperty('CacheStorage', "match", {configurable:true, enumerable:true, writable:true, value:function match (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CacheStorage'].prototype, "CacheStorage", "match", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('CacheStorage', "open", {configurable:true, enumerable:true, writable:true, value:function open (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CacheStorage'].prototype, "CacheStorage", "open", arguments)}},'prototype');
|
||||
|
||||
bodavm.memory.globalobj[ 'caches'] = {}
|
||||
bodavm.memory.globalobj[ 'caches'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'caches'].__proto__=bodavm.memory.globalobj['CacheStorage'].prototype;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// CanvasRenderingContext2D对象
|
||||
bodavm.memory.globalobj['CanvasRenderingContext2D'] = function CanvasRenderingContext2D(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['CanvasRenderingContext2D'] = function CanvasRenderingContext2D(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CanvasRenderingContext2D'], "CanvasRenderingContext2D");
|
||||
bodavm.toolsFunc.defineProperty('CanvasRenderingContext2D', "canvas", {configurable:true, enumerable:true, get:function canvas (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CanvasRenderingContext2D'].prototype, "CanvasRenderingContext2D", "canvas_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('CanvasRenderingContext2D', "globalAlpha", {configurable:true, enumerable:true, get:function globalAlpha (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CanvasRenderingContext2D'].prototype, "CanvasRenderingContext2D", "globalAlpha_get", arguments)}, set:function globalAlpha (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CanvasRenderingContext2D'].prototype, "CanvasRenderingContext2D", "globalAlpha_set", arguments)}},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/CharacterData.js
vendored
2
env_xbb_lastest_jsdom/env/CharacterData.js
vendored
@ -1,5 +1,5 @@
|
||||
// CharacterData对象
|
||||
bodavm.memory.globalobj['CharacterData'] = function CharacterData(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['CharacterData'] = function CharacterData(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CharacterData'], "CharacterData");
|
||||
bodavm.memory.globalobj['CharacterData'].prototype.__proto__=bodavm.memory.globalobj['Node'].prototype;
|
||||
bodavm.memory.globalobj['CharacterData'].__proto__=bodavm.memory.globalobj['Node'];
|
||||
|
2
env_xbb_lastest_jsdom/env/CloseEvent.js
vendored
2
env_xbb_lastest_jsdom/env/CloseEvent.js
vendored
@ -8,7 +8,7 @@ bodavm.memory.globalobj['CloseEvent'] = function CloseEvent() {
|
||||
if (arguments.length < 1) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'CloseEvent': 1 argument required, but only 0 present.")
|
||||
}
|
||||
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
}
|
||||
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CloseEvent'], "CloseEvent");
|
||||
|
2
env_xbb_lastest_jsdom/env/Comment.js
vendored
2
env_xbb_lastest_jsdom/env/Comment.js
vendored
@ -3,7 +3,7 @@ bodavm.memory.globalobj['Comment'] = function Comment(){
|
||||
if (!(this instanceof Comment)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Comment': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
}
|
||||
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Comment'], "Comment");
|
||||
bodavm.memory.globalobj['Comment'].prototype.__proto__=bodavm.memory.globalobj['CharacterData'].prototype;
|
||||
|
4
env_xbb_lastest_jsdom/env/CookieStore.js
vendored
4
env_xbb_lastest_jsdom/env/CookieStore.js
vendored
@ -1,5 +1,5 @@
|
||||
// CookieStore对象
|
||||
bodavm.memory.globalobj['CookieStore'] = function CookieStore(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['CookieStore'] = function CookieStore(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CookieStore'], "CookieStore");
|
||||
bodavm.memory.globalobj['CookieStore'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['CookieStore'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
@ -9,5 +9,5 @@ bodavm.toolsFunc.defineProperty('CookieStore', "getAll", {configurable:true, enu
|
||||
bodavm.toolsFunc.defineProperty('CookieStore', "set", {configurable:true, enumerable:true, writable:true, value:function set (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CookieStore'].prototype, "CookieStore", "set", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('CookieStore', "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CookieStore'].prototype, "CookieStore", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CookieStore'].prototype, "CookieStore", "onchange_set", arguments)}},'prototype');
|
||||
|
||||
bodavm.memory.globalobj[ 'cookieStore'] = {}
|
||||
bodavm.memory.globalobj[ 'cookieStore'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'cookieStore'].__proto__=bodavm.memory.globalobj['CookieStore'].prototype;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// CredentialsContainer对象
|
||||
bodavm.memory.globalobj['CredentialsContainer'] = function CredentialsContainer(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['CredentialsContainer'] = function CredentialsContainer(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CredentialsContainer'], "CredentialsContainer");
|
||||
bodavm.toolsFunc.defineProperty('CredentialsContainer', "create", {configurable:true, enumerable:true, writable:true, value:function create (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CredentialsContainer'].prototype, "CredentialsContainer", "create", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('CredentialsContainer', "get", {configurable:true, enumerable:true, writable:true, value:function get (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CredentialsContainer'].prototype, "CredentialsContainer", "get", arguments)}},'prototype');
|
||||
|
4
env_xbb_lastest_jsdom/env/Crypto.js
vendored
4
env_xbb_lastest_jsdom/env/Crypto.js
vendored
@ -1,10 +1,10 @@
|
||||
// Crypto对象
|
||||
bodavm.memory.globalobj['Crypto'] = function Crypto(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Crypto'] = function Crypto(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Crypto'], "Crypto");
|
||||
bodavm.toolsFunc.defineProperty('Crypto', "getRandomValues", {configurable:true, enumerable:true, writable:true, value:function getRandomValues (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Crypto'].prototype, "Crypto", "getRandomValues", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('Crypto', "subtle", {configurable:true, enumerable:true, get:function subtle (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Crypto'].prototype, "Crypto", "subtle_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('Crypto', "randomUUID", {configurable:true, enumerable:true, writable:true, value:function randomUUID (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Crypto'].prototype, "Crypto", "randomUUID", arguments)}},'prototype');
|
||||
|
||||
|
||||
bodavm.memory.globalobj[ 'crypto'] ={}
|
||||
bodavm.memory.globalobj[ 'crypto'] ={ _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'crypto'].__proto__ = bodavm.memory.globalobj['Crypto'] .prototype
|
||||
|
@ -1,5 +1,5 @@
|
||||
// CustomElementRegistry对象
|
||||
bodavm.memory.globalobj['CustomElementRegistry'] = function CustomElementRegistry(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['CustomElementRegistry'] = function CustomElementRegistry(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CustomElementRegistry'], "CustomElementRegistry");
|
||||
bodavm.toolsFunc.defineProperty('CustomElementRegistry', "define", {configurable:true, enumerable:true, writable:true, value:function define (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CustomElementRegistry'].prototype, "CustomElementRegistry", "define", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('CustomElementRegistry', "get", {configurable:true, enumerable:true, writable:true, value:function get (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CustomElementRegistry'].prototype, "CustomElementRegistry", "get", arguments)}},'prototype');
|
||||
@ -7,5 +7,5 @@ bodavm.toolsFunc.defineProperty('CustomElementRegistry', "upgrade", {configurabl
|
||||
bodavm.toolsFunc.defineProperty('CustomElementRegistry', "whenDefined", {configurable:true, enumerable:true, writable:true, value:function whenDefined (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CustomElementRegistry'].prototype, "CustomElementRegistry", "whenDefined", arguments)}},'prototype');
|
||||
|
||||
// customElements对象
|
||||
bodavm.memory.globalobj[ 'customElements'] = {}
|
||||
bodavm.memory.globalobj[ 'customElements'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'customElements'].__proto__=bodavm.memory.globalobj['CustomElementRegistry'].prototype;
|
||||
|
2
env_xbb_lastest_jsdom/env/DOMParser.js
vendored
2
env_xbb_lastest_jsdom/env/DOMParser.js
vendored
@ -3,7 +3,7 @@ bodavm.memory.globalobj['DOMParser'] = function DOMParser(){
|
||||
if (!(this instanceof Document)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'DOMParser': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['DOMParser'], "DOMParser");
|
||||
bodavm.toolsFunc.defineProperty('DOMParser', "parseFromString", {configurable:true, enumerable:true, writable:true, value:function parseFromString (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['DOMParser'].prototype, "DOMParser", "parseFromString", arguments)}},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/DOMStringList.js
vendored
2
env_xbb_lastest_jsdom/env/DOMStringList.js
vendored
@ -1,5 +1,5 @@
|
||||
// DOMStringList对象
|
||||
bodavm.memory.globalobj['DOMStringList'] = function DOMStringList(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['DOMStringList'] = function DOMStringList(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['DOMStringList'], "DOMStringList");
|
||||
bodavm.toolsFunc.defineProperty('DOMStringList', "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['DOMStringList'].prototype, "DOMStringList", "length_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('DOMStringList', "contains", {configurable:true, enumerable:true, writable:true, value:function contains (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['DOMStringList'].prototype, "DOMStringList", "contains", arguments)}},'prototype');
|
||||
|
4
env_xbb_lastest_jsdom/env/Database.js
vendored
4
env_xbb_lastest_jsdom/env/Database.js
vendored
@ -1,13 +1,13 @@
|
||||
|
||||
|
||||
// BarProp对象
|
||||
bodavm.memory.globalobj['Database'] = function Database() { return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor") }
|
||||
bodavm.memory.globalobj['Database'] = function Database() { this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor") }
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Database'] , "Database");
|
||||
bodavm.toolsFunc.defineProperty('Database' , "version", { configurable: true, enumerable: true, get: function version() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Database'].prototype, "Database", "version", arguments) }, set: undefined },'prototype');
|
||||
bodavm.toolsFunc.defineProperty('Database' , "readTransaction", { configurable: true, enumerable: true, writable: true, value: function readTransaction() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Database'].prototype, "Database", "readTransaction", arguments) } },'prototype');
|
||||
bodavm.toolsFunc.defineProperty('Database' , "transaction", { configurable: true, enumerable: true, writable: true, value: function transaction() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Database'].prototype, "Database", "transaction", arguments) } },'prototype');
|
||||
bodavm.toolsFunc.defineProperty('Database' , "changeVersion", { configurable: true, enumerable: true, writable: true, value: function changeVersion() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Database'].prototype, "Database", "changeVersion", arguments) } },'prototype');
|
||||
|
||||
bodavm.memory.globalobj[ 'database'] = {}
|
||||
bodavm.memory.globalobj[ 'database'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'database'] .__proto__ = bodavm.memory.globalobj['Database'] .prototype
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
bodavm.memory.globalobj['DeprecatedStorageInfo'] = function DeprecatedStorageInfo() { }
|
||||
bodavm.memory.globalobj['DeprecatedStorageInfo'] = function DeprecatedStorageInfo() { this._boisinit=bodavm.config.isinit;}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['DeprecatedStorageInfo'] , "DeprecatedStorageInfo");
|
||||
|
||||
bodavm.toolsFunc.defineProperty('DeprecatedStorageInfo' , "TEMPORARY", { configurable: false, enumerable: true, writable: false, value: 0 });
|
||||
@ -9,5 +9,5 @@ bodavm.toolsFunc.defineProperty('DeprecatedStorageInfo' , "PERSISTENT", { config
|
||||
bodavm.toolsFunc.defineProperty('DeprecatedStorageInfo' , "queryUsageAndQuota", { writable: true, enumerable: true, configurable: true, value: function queryUsageAndQuota() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['DeprecatedStorageInfo'] .prototype, "DeprecatedStorageInfo", "queryUsageAndQuota", arguments) } },'prototype');
|
||||
bodavm.toolsFunc.defineProperty('DeprecatedStorageInfo' , "requestQuota", { writable: true, enumerable: true, configurable: true, value: function requestQuota() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['DeprecatedStorageInfo'] .prototype, "DeprecatedStorageInfo", "requestQuota", arguments) } },'prototype');
|
||||
|
||||
bodavm.memory.globalobj[ 'webkitStorageInfo'] = {}
|
||||
bodavm.memory.globalobj[ 'webkitStorageInfo'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'webkitStorageInfo'].__proto__ = bodavm.memory.globalobj['DeprecatedStorageInfo'].prototype
|
||||
|
@ -1,6 +1,6 @@
|
||||
// DeviceOrientationEvent对象
|
||||
bodavm.memory.globalobj['DeviceOrientationEvent'] = function DeviceOrientationEvent() {
|
||||
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof DeviceOrientationEvent)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'DeviceOrientationEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
1
env_xbb_lastest_jsdom/env/Document.js
vendored
1
env_xbb_lastest_jsdom/env/Document.js
vendored
@ -3,6 +3,7 @@ bodavm.memory.globalobj['Document'] = function Document(){
|
||||
if (!(this instanceof Document)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Document': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Document'], "Document");
|
||||
bodavm.memory.globalobj['Document'].prototype.__proto__=bodavm.memory.globalobj['Node'].prototype;
|
||||
|
@ -1,5 +1,6 @@
|
||||
// DocumentFragment对象
|
||||
bodavm.memory.globalobj['DocumentFragment'] = function DocumentFragment(){
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof Document)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'DocumentFragment': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
2
env_xbb_lastest_jsdom/env/DocumentType.js
vendored
2
env_xbb_lastest_jsdom/env/DocumentType.js
vendored
@ -1,5 +1,5 @@
|
||||
// DocumentType对象
|
||||
bodavm.memory.globalobj['DocumentType'] = function DocumentType(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['DocumentType'] = function DocumentType(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['DocumentType'], "DocumentType");
|
||||
bodavm.memory.globalobj['DocumentType'].prototype.__proto__=bodavm.memory.globalobj['Node'].prototype;
|
||||
bodavm.memory.globalobj['DocumentType'].__proto__=bodavm.memory.globalobj['Node'];
|
||||
|
2
env_xbb_lastest_jsdom/env/Element.js
vendored
2
env_xbb_lastest_jsdom/env/Element.js
vendored
@ -1,5 +1,5 @@
|
||||
// Element对象
|
||||
bodavm.memory.globalobj['Element'] = function Element(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Element'] = function Element(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Element'], "Element");
|
||||
bodavm.memory.globalobj['Element'].prototype.__proto__=bodavm.memory.globalobj['Node'].prototype;
|
||||
bodavm.memory.globalobj['Element'].__proto__=bodavm.memory.globalobj['Node'];
|
||||
|
1
env_xbb_lastest_jsdom/env/Event.js
vendored
1
env_xbb_lastest_jsdom/env/Event.js
vendored
@ -1,5 +1,6 @@
|
||||
//Event对象
|
||||
bodavm.memory.globalobj['Event']=function Event(){
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof Event)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Event': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
2
env_xbb_lastest_jsdom/env/EventTarget.js
vendored
2
env_xbb_lastest_jsdom/env/EventTarget.js
vendored
@ -4,7 +4,7 @@ bodavm.memory.globalobj['EventTarget'] = function EventTarget(){
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'EventTarget': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
||||
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['EventTarget'], "EventTarget");
|
||||
bodavm.toolsFunc.defineProperty('EventTarget', "addEventListener", {configurable:true, enumerable:true, writable:true, value:function addEventListener (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['EventTarget'].prototype, "EventTarget", "addEventListener", arguments)}},'prototype');
|
||||
|
4
env_xbb_lastest_jsdom/env/External.js
vendored
4
env_xbb_lastest_jsdom/env/External.js
vendored
@ -1,10 +1,10 @@
|
||||
// External对象
|
||||
bodavm.memory.globalobj['External'] = function External(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['External'] = function External(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['External'], "External");
|
||||
bodavm.toolsFunc.defineProperty('External', "AddSearchProvider", {configurable:true, enumerable:true, writable:true, value:function AddSearchProvider (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['External'].prototype, "External", "AddSearchProvider", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('External', "IsSearchProviderInstalled", {configurable:true, enumerable:true, writable:true, value:function IsSearchProviderInstalled (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['External'].prototype, "External", "IsSearchProviderInstalled", arguments)}},'prototype');
|
||||
|
||||
bodavm.memory.globalobj[ 'external'] = {}
|
||||
bodavm.memory.globalobj[ 'external'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'external'].__proto__=bodavm.memory.globalobj['External'].prototype;
|
||||
|
||||
|
||||
|
@ -1,11 +1,13 @@
|
||||
// HTMLAudioElement对象
|
||||
bodavm.memory.globalobj['HTMLAudioElement'] = function HTMLAudioElement(){
|
||||
this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof HTMLAudioElement)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'HTMLAudioElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")
|
||||
|
||||
|
||||
}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['HTMLAudioElement'], "HTMLAudioElement");
|
||||
bodavm.memory.globalobj['HTMLAudioElement'].prototype.__proto__=bodavm.memory.globalobj['HTMLMediaElement'].prototype;
|
||||
|
2
env_xbb_lastest_jsdom/env/HTMLCollection.js
vendored
2
env_xbb_lastest_jsdom/env/HTMLCollection.js
vendored
@ -1,5 +1,5 @@
|
||||
// HTMLCollection对象
|
||||
bodavm.memory.globalobj['HTMLCollection'] = function HTMLCollection(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['HTMLCollection'] = function HTMLCollection(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['HTMLCollection'], "HTMLCollection");
|
||||
bodavm.toolsFunc.defineProperty('HTMLCollection', "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['HTMLCollection'].prototype, "HTMLCollection", "length_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('HTMLCollection', "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['HTMLCollection'].prototype, "HTMLCollection", "item", arguments)}},'prototype');
|
||||
|
3
env_xbb_lastest_jsdom/env/HTMLDocument.js
vendored
3
env_xbb_lastest_jsdom/env/HTMLDocument.js
vendored
@ -1,5 +1,6 @@
|
||||
// HTMLDocument对象
|
||||
bodavm.memory.globalobj['HTMLDocument'] = function HTMLDocument(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['HTMLDocument'] = function HTMLDocument(){this._boisinit=bodavm.config.isinit;
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['HTMLDocument'], "HTMLDocument");
|
||||
bodavm.memory.globalobj['HTMLDocument'].prototype.__proto__=bodavm.memory.globalobj['Document'].prototype;
|
||||
bodavm.memory.globalobj['HTMLDocument'].__proto__=bodavm.memory.globalobj['Document'];
|
||||
|
2
env_xbb_lastest_jsdom/env/HTMLElement.js
vendored
2
env_xbb_lastest_jsdom/env/HTMLElement.js
vendored
@ -1,5 +1,5 @@
|
||||
// HTMLElement对象
|
||||
bodavm.memory.globalobj['HTMLElement'] = function HTMLElement(){
|
||||
bodavm.memory.globalobj['HTMLElement'] = function HTMLElement(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof HTMLElement)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
2
env_xbb_lastest_jsdom/env/Headers.js
vendored
2
env_xbb_lastest_jsdom/env/Headers.js
vendored
@ -2,7 +2,7 @@
|
||||
bodavm.memory.globalobj['Headers'] = function Headers(){
|
||||
if (!(this instanceof Headers)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Headers': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
};this._boisinit=bodavm.config.isinit;
|
||||
}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Headers'], "Headers");
|
||||
bodavm.toolsFunc.defineProperty('Headers', "append", {configurable:true, enumerable:true, writable:true, value:function append (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Headers'].prototype, "Headers", "append", arguments)}},'prototype');
|
||||
|
4
env_xbb_lastest_jsdom/env/History.js
vendored
4
env_xbb_lastest_jsdom/env/History.js
vendored
@ -1,5 +1,5 @@
|
||||
// History对象
|
||||
bodavm.memory.globalobj['History'] = function History(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['History'] = function History(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['History'], "History");
|
||||
bodavm.toolsFunc.defineProperty('History', "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['History'].prototype, "History", "length_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('History', "scrollRestoration", {configurable:true, enumerable:true, get:function scrollRestoration (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['History'].prototype, "History", "scrollRestoration_get", arguments)}, set:function scrollRestoration (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['History'].prototype, "History", "scrollRestoration_set", arguments)}},'prototype');
|
||||
@ -10,5 +10,5 @@ bodavm.toolsFunc.defineProperty('History', "go", {configurable:true, enumerable:
|
||||
bodavm.toolsFunc.defineProperty('History', "pushState", {configurable:true, enumerable:true, writable:true, value:function pushState (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['History'].prototype, "History", "pushState", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('History', "replaceState", {configurable:true, enumerable:true, writable:true, value:function replaceState (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['History'].prototype, "History", "replaceState", arguments)}},'prototype');
|
||||
|
||||
bodavm.memory.globalobj[ 'history'] = {}
|
||||
bodavm.memory.globalobj[ 'history'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'history'].__proto__= bodavm.memory.globalobj['History'].prototype;
|
||||
|
2
env_xbb_lastest_jsdom/env/IDBDatabase.js
vendored
2
env_xbb_lastest_jsdom/env/IDBDatabase.js
vendored
@ -1,5 +1,5 @@
|
||||
// IDBDatabase对象
|
||||
bodavm.memory.globalobj['IDBDatabase'] = function IDBDatabase(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['IDBDatabase'] = function IDBDatabase(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['IDBDatabase'], "IDBDatabase");
|
||||
bodavm.memory.globalobj['IDBDatabase'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['IDBDatabase'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
4
env_xbb_lastest_jsdom/env/IDBFactory.js
vendored
4
env_xbb_lastest_jsdom/env/IDBFactory.js
vendored
@ -1,5 +1,5 @@
|
||||
// IDBFactory对象
|
||||
bodavm.memory.globalobj['IDBFactory'] = function IDBFactory(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['IDBFactory'] = function IDBFactory(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['IDBFactory'], "IDBFactory");
|
||||
bodavm.toolsFunc.defineProperty('IDBFactory', "cmp", {configurable:true, enumerable:true, writable:true, value:function cmp (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['IDBFactory'].prototype, "IDBFactory", "cmp", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('IDBFactory', "databases", {configurable:true, enumerable:true, writable:true, value:function databases (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['IDBFactory'].prototype, "IDBFactory", "databases", arguments)}},'prototype');
|
||||
@ -8,5 +8,5 @@ bodavm.toolsFunc.defineProperty('IDBFactory', "open", {configurable:true, enumer
|
||||
|
||||
|
||||
// indexedDB对象
|
||||
bodavm.memory.globalobj[ 'indexedDB'] = {}
|
||||
bodavm.memory.globalobj[ 'indexedDB'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'indexedDB'].__proto__=bodavm.memory.globalobj['IDBFactory'].prototype;
|
||||
|
2
env_xbb_lastest_jsdom/env/IDBObjectStore.js
vendored
2
env_xbb_lastest_jsdom/env/IDBObjectStore.js
vendored
@ -1,5 +1,5 @@
|
||||
// IDBObjectStore对象
|
||||
bodavm.memory.globalobj['IDBObjectStore'] = function IDBObjectStore(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['IDBObjectStore'] = function IDBObjectStore(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['IDBObjectStore'], "IDBObjectStore");
|
||||
bodavm.toolsFunc.defineProperty('IDBObjectStore', "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['IDBObjectStore'].prototype, "IDBObjectStore", "name_get", arguments)}, set:function name (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['IDBObjectStore'].prototype, "IDBObjectStore", "name_set", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('IDBObjectStore', "keyPath", {configurable:true, enumerable:true, get:function keyPath (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['IDBObjectStore'].prototype, "IDBObjectStore", "keyPath_get", arguments)}, set:undefined},'prototype');
|
||||
|
@ -1,5 +1,5 @@
|
||||
// IDBOpenDBRequest对象
|
||||
bodavm.memory.globalobj['IDBOpenDBRequest'] = function IDBOpenDBRequest(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['IDBOpenDBRequest'] = function IDBOpenDBRequest(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['IDBOpenDBRequest'], "IDBOpenDBRequest");
|
||||
bodavm.memory.globalobj['IDBOpenDBRequest'].prototype.__proto__=bodavm.memory.globalobj['IDBRequest'].prototype;
|
||||
bodavm.memory.globalobj['IDBOpenDBRequest'].__proto__=bodavm.memory.globalobj['IDBRequest'];
|
||||
|
2
env_xbb_lastest_jsdom/env/IDBRequest.js
vendored
2
env_xbb_lastest_jsdom/env/IDBRequest.js
vendored
@ -1,5 +1,5 @@
|
||||
// IDBRequest对象
|
||||
bodavm.memory.globalobj['IDBRequest'] = function IDBRequest(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['IDBRequest'] = function IDBRequest(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['IDBRequest'], "IDBRequest");
|
||||
bodavm.memory.globalobj['IDBRequest'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['IDBRequest'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
2
env_xbb_lastest_jsdom/env/IDBTransaction.js
vendored
2
env_xbb_lastest_jsdom/env/IDBTransaction.js
vendored
@ -1,5 +1,5 @@
|
||||
// IDBTransaction对象
|
||||
bodavm.memory.globalobj['IDBTransaction'] = function IDBTransaction(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['IDBTransaction'] = function IDBTransaction(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['IDBTransaction'], "IDBTransaction");
|
||||
bodavm.memory.globalobj['IDBTransaction'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['IDBTransaction'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
@ -1,5 +1,5 @@
|
||||
// IDBVersionChangeEvent对象
|
||||
bodavm.memory.globalobj['IDBVersionChangeEvent'] = function IDBVersionChangeEvent(){
|
||||
bodavm.memory.globalobj['IDBVersionChangeEvent'] = function IDBVersionChangeEvent(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof IDBVersionChangeEvent)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'IDBVersionChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
4
env_xbb_lastest_jsdom/env/Location.js
vendored
4
env_xbb_lastest_jsdom/env/Location.js
vendored
@ -1,11 +1,11 @@
|
||||
// Location对象
|
||||
bodavm.memory.globalobj['Location'] = function Location(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Location'] = function Location(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Location'], "Location");
|
||||
|
||||
// debugger
|
||||
// location对象
|
||||
// location对象
|
||||
bodavm.memory.globalobj['location'] = {}
|
||||
bodavm.memory.globalobj['location'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj['location'].__proto__=bodavm.memory.globalobj['Location'].prototype;
|
||||
bodavm.toolsFunc.defineProperty('location', "valueOf", {configurable:false, enumerable:false, writable:false, value:function valueOf (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['location'], "location", "valueOf", arguments)}});
|
||||
bodavm.toolsFunc.defineProperty('location', "ancestorOrigins", {configurable:false, enumerable:true, get:function ancestorOrigins (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['location'], "location", "ancestorOrigins_get", arguments)}, set:undefined});
|
||||
|
2
env_xbb_lastest_jsdom/env/LockManager.js
vendored
2
env_xbb_lastest_jsdom/env/LockManager.js
vendored
@ -1,5 +1,5 @@
|
||||
// LockManager对象
|
||||
bodavm.memory.globalobj['LockManager'] = function LockManager(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['LockManager'] = function LockManager(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['LockManager'], "LockManager");
|
||||
bodavm.toolsFunc.defineProperty('LockManager', "query", {configurable:true, enumerable:true, writable:true, value:function query (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['LockManager'].prototype, "LockManager", "query", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('LockManager', "request", {configurable:true, enumerable:true, writable:true, value:function request (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['LockManager'].prototype, "LockManager", "request", arguments)}},'prototype');
|
||||
|
@ -1,5 +1,5 @@
|
||||
// MediaEncryptedEvent对象
|
||||
bodavm.memory.globalobj['MediaEncryptedEvent'] = function MediaEncryptedEvent(){
|
||||
bodavm.memory.globalobj['MediaEncryptedEvent'] = function MediaEncryptedEvent(){this._boisinit=bodavm.config.isinit;
|
||||
|
||||
if (!(this instanceof MediaEncryptedEvent)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MediaEncryptedEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
|
2
env_xbb_lastest_jsdom/env/MediaQueryList.js
vendored
2
env_xbb_lastest_jsdom/env/MediaQueryList.js
vendored
@ -1,5 +1,5 @@
|
||||
// MediaQueryList对象
|
||||
bodavm.memory.globalobj['MediaQueryList'] = function MediaQueryList(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['MediaQueryList'] = function MediaQueryList(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['MediaQueryList'], "MediaQueryList");
|
||||
bodavm.memory.globalobj['MediaQueryList'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['MediaQueryList'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
2
env_xbb_lastest_jsdom/env/MediaStream.js
vendored
2
env_xbb_lastest_jsdom/env/MediaStream.js
vendored
@ -1,5 +1,5 @@
|
||||
// MediaStream对象
|
||||
bodavm.memory.globalobj['MediaStream'] = function MediaStream(){
|
||||
bodavm.memory.globalobj['MediaStream'] = function MediaStream(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof MediaStream)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MediaStream ': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
2
env_xbb_lastest_jsdom/env/MimeType.js
vendored
2
env_xbb_lastest_jsdom/env/MimeType.js
vendored
@ -1,5 +1,5 @@
|
||||
// MimeType对象
|
||||
bodavm.memory.globalobj['MimeType'] = function MimeType(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['MimeType'] = function MimeType(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['MimeType'], "MimeType");
|
||||
bodavm.toolsFunc.defineProperty('MimeType', "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['MimeType'].prototype, "MimeType", "type_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('MimeType', "suffixes", {configurable:true, enumerable:true, get:function suffixes (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['MimeType'].prototype, "MimeType", "suffixes_get", arguments)}, set:undefined},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/MimeTypeArray.js
vendored
2
env_xbb_lastest_jsdom/env/MimeTypeArray.js
vendored
@ -1,5 +1,5 @@
|
||||
// MimeTypeArray对象
|
||||
bodavm.memory.globalobj['MimeTypeArray'] = function MimeTypeArray(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['MimeTypeArray'] = function MimeTypeArray(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['MimeTypeArray'], "MimeTypeArray");
|
||||
bodavm.toolsFunc.defineProperty('MimeTypeArray', "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['MimeTypeArray'].prototype, "MimeTypeArray", "length_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('MimeTypeArray', "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['MimeTypeArray'].prototype, "MimeTypeArray", "item", arguments)}},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/MouseEvent.js
vendored
2
env_xbb_lastest_jsdom/env/MouseEvent.js
vendored
@ -1,5 +1,5 @@
|
||||
// MouseEvent对象
|
||||
bodavm.memory.globalobj['MouseEvent'] = function MouseEvent() {
|
||||
bodavm.memory.globalobj['MouseEvent'] = function MouseEvent() {this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof MouseEvent)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MouseEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
@ -1,11 +1,12 @@
|
||||
// MutationObserver对象
|
||||
bodavm.memory.globalobj['MutationObserver'] = function MutationObserver(){
|
||||
bodavm.memory.globalobj['MutationObserver'] = function MutationObserver(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof MutationObserver)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MutationObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
if (arguments.length <1){
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MutationObserver': 1 argument required, but only 0 present.")}
|
||||
|
||||
|
||||
this._boarg=new bodaobj.window.MutationObserver(arguments[0])
|
||||
}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['MutationObserver'], "MutationObserver");
|
||||
bodavm.toolsFunc.defineProperty('MutationObserver', "disconnect", {configurable:true, enumerable:true, writable:true, value:function disconnect (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['MutationObserver'].prototype, "MutationObserver", "disconnect", arguments)}},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/NamedNodeMap.js
vendored
2
env_xbb_lastest_jsdom/env/NamedNodeMap.js
vendored
@ -1,5 +1,5 @@
|
||||
// NamedNodeMap对象
|
||||
bodavm.memory.globalobj['NamedNodeMap'] = function NamedNodeMap(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['NamedNodeMap'] = function NamedNodeMap(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['NamedNodeMap'], "NamedNodeMap");
|
||||
bodavm.toolsFunc.defineProperty('NamedNodeMap', "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['NamedNodeMap'].prototype, "NamedNodeMap", "length_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('NamedNodeMap', "getNamedItem", {configurable:true, enumerable:true, writable:true, value:function getNamedItem (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['NamedNodeMap'].prototype, "NamedNodeMap", "getNamedItem", arguments)}},'prototype');
|
||||
|
4
env_xbb_lastest_jsdom/env/Navigation.js
vendored
4
env_xbb_lastest_jsdom/env/Navigation.js
vendored
@ -1,5 +1,5 @@
|
||||
// Navigation对象
|
||||
bodavm.memory.globalobj['Navigation'] = function Navigation(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Navigation'] = function Navigation(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Navigation'], "Navigation");
|
||||
bodavm.memory.globalobj['Navigation'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['Navigation'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
@ -21,6 +21,6 @@ bodavm.toolsFunc.defineProperty('Navigation', "updateCurrentEntry", {configurabl
|
||||
|
||||
|
||||
|
||||
bodavm.memory.globalobj[ 'navigation'] ={}
|
||||
bodavm.memory.globalobj[ 'navigation'] ={ _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'navigation'].__proto__=bodavm.memory.globalobj['Navigation'].prototype
|
||||
|
||||
|
6
env_xbb_lastest_jsdom/env/Navigator.js
vendored
6
env_xbb_lastest_jsdom/env/Navigator.js
vendored
@ -1,5 +1,5 @@
|
||||
// Navigator对象
|
||||
bodavm.memory.globalobj['Navigator'] = function Navigator(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Navigator'] = function Navigator(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Navigator'], "Navigator");
|
||||
bodavm.toolsFunc.defineProperty('Navigator', "vendorSub", {configurable:true, enumerable:true, get:function vendorSub (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Navigator'].prototype, "Navigator", "vendorSub_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('Navigator', "productSub", {configurable:true, enumerable:true, get:function productSub (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Navigator'].prototype, "Navigator", "productSub_get", arguments)}, set:undefined},'prototype');
|
||||
@ -68,10 +68,10 @@ bodavm.toolsFunc.defineProperty('Navigator', "unregisterProtocolHandler", {confi
|
||||
|
||||
|
||||
// navigator对象
|
||||
bodavm.memory.globalobj[ 'navigator'] = {}
|
||||
bodavm.memory.globalobj[ 'navigator'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'navigator'].__proto__=bodavm.memory.globalobj['Navigator'].prototype;
|
||||
// clientInformation对象
|
||||
bodavm.memory.globalobj[ 'clientInformation'] = {}
|
||||
bodavm.memory.globalobj[ 'clientInformation'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'clientInformation'] .__proto__=bodavm.memory.globalobj['Navigator'].prototype;
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// NetworkInformation对象
|
||||
bodavm.memory.globalobj['NetworkInformation'] = function NetworkInformation(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['NetworkInformation'] = function NetworkInformation(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['NetworkInformation'], "NetworkInformation");
|
||||
bodavm.memory.globalobj['NetworkInformation'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['NetworkInformation'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
2
env_xbb_lastest_jsdom/env/Node.js
vendored
2
env_xbb_lastest_jsdom/env/Node.js
vendored
@ -1,5 +1,5 @@
|
||||
// Node对象
|
||||
bodavm.memory.globalobj['Node'] = function Node(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Node'] = function Node(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Node'], "Node");
|
||||
bodavm.memory.globalobj['Node'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['Node'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
2
env_xbb_lastest_jsdom/env/NodeList.js
vendored
2
env_xbb_lastest_jsdom/env/NodeList.js
vendored
@ -1,5 +1,5 @@
|
||||
// NodeList对象
|
||||
bodavm.memory.globalobj['NodeList'] = function NodeList(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['NodeList'] = function NodeList(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['NodeList'], "NodeList");
|
||||
bodavm.toolsFunc.defineProperty('NodeList', "entries", {configurable:true, enumerable:true, writable:true, value:function entries (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['NodeList'].prototype, "NodeList", "entries", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('NodeList', "keys", {configurable:true, enumerable:true, writable:true, value:function keys (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['NodeList'].prototype, "NodeList", "keys", arguments)}},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/Notification.js
vendored
2
env_xbb_lastest_jsdom/env/Notification.js
vendored
@ -1,5 +1,5 @@
|
||||
// Notification对象
|
||||
bodavm.memory.globalobj['Notification'] = function Notification(){
|
||||
bodavm.memory.globalobj['Notification'] = function Notification(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof Notification)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Notification': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
// OfflineAudioContext对象
|
||||
bodavm.memory.globalobj['OfflineAudioContext'] = function OfflineAudioContext(){
|
||||
bodavm.memory.globalobj['OfflineAudioContext'] = function OfflineAudioContext(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof OfflineAudioContext)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'OfflineAudioContext': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
// OffscreenCanvasRenderingContext2D对象
|
||||
bodavm.memory.globalobj['OffscreenCanvasRenderingContext2D'] = function OffscreenCanvasRenderingContext2D(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['OffscreenCanvasRenderingContext2D'] = function OffscreenCanvasRenderingContext2D(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['OffscreenCanvasRenderingContext2D'], "OffscreenCanvasRenderingContext2D");
|
||||
bodavm.toolsFunc.defineProperty('OffscreenCanvasRenderingContext2D', "canvas", {configurable:true, enumerable:true, get:function canvas (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['OffscreenCanvasRenderingContext2D'].prototype, "OffscreenCanvasRenderingContext2D", "canvas_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('OffscreenCanvasRenderingContext2D', "globalAlpha", {configurable:true, enumerable:true, get:function globalAlpha (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['OffscreenCanvasRenderingContext2D'].prototype, "OffscreenCanvasRenderingContext2D", "globalAlpha_get", arguments)}, set:function globalAlpha (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['OffscreenCanvasRenderingContext2D'].prototype, "OffscreenCanvasRenderingContext2D", "globalAlpha_set", arguments)}},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/Option.js
vendored
2
env_xbb_lastest_jsdom/env/Option.js
vendored
@ -1,5 +1,5 @@
|
||||
// Option对象
|
||||
bodavm.memory.globalobj['Option'] = function Option(){
|
||||
bodavm.memory.globalobj['Option'] = function Option(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof Option)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Option': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
2
env_xbb_lastest_jsdom/env/Path2D.js
vendored
2
env_xbb_lastest_jsdom/env/Path2D.js
vendored
@ -1,5 +1,5 @@
|
||||
// Path2D对象
|
||||
bodavm.memory.globalobj['Path2D'] = function Path2D(){
|
||||
bodavm.memory.globalobj['Path2D'] = function Path2D(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof Path2D)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Path2D': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
4
env_xbb_lastest_jsdom/env/Performance.js
vendored
4
env_xbb_lastest_jsdom/env/Performance.js
vendored
@ -1,5 +1,5 @@
|
||||
// Performance对象
|
||||
bodavm.memory.globalobj['Performance'] = function Performance(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Performance'] = function Performance(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Performance'], "Performance");
|
||||
bodavm.memory.globalobj['Performance'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['Performance'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
@ -22,6 +22,6 @@ bodavm.toolsFunc.defineProperty('Performance', "memory", {configurable:true, enu
|
||||
bodavm.toolsFunc.defineProperty('Performance', "eventCounts", {configurable:true, enumerable:true, get:function eventCounts (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Performance'].prototype, "Performance", "eventCounts_get", arguments)}, set:undefined},'prototype');
|
||||
|
||||
// performance对象
|
||||
bodavm.memory.globalobj[ 'performance'] = {}
|
||||
bodavm.memory.globalobj[ 'performance'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'performance'].__proto__=bodavm.memory.globalobj['Performance'].prototype;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// PerformanceEntry对象
|
||||
bodavm.memory.globalobj['PerformanceEntry'] = function PerformanceEntry(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['PerformanceEntry'] = function PerformanceEntry(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['PerformanceEntry'], "PerformanceEntry");
|
||||
bodavm.toolsFunc.defineProperty('PerformanceEntry', "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceEntry'].prototype, "PerformanceEntry", "name_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceEntry', "entryType", {configurable:true, enumerable:true, get:function entryType (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceEntry'].prototype, "PerformanceEntry", "entryType_get", arguments)}, set:undefined},'prototype');
|
||||
|
@ -1,5 +1,5 @@
|
||||
// PerformancePaintTiming对象
|
||||
bodavm.memory.globalobj['PerformancePaintTiming'] = function PerformancePaintTiming(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['PerformancePaintTiming'] = function PerformancePaintTiming(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['PerformancePaintTiming'], "PerformancePaintTiming");
|
||||
bodavm.memory.globalobj['PerformancePaintTiming'].prototype.__proto__=bodavm.memory.globalobj['PerformanceEntry'].prototype;
|
||||
bodavm.memory.globalobj['PerformancePaintTiming'].__proto__=bodavm.memory.globalobj['PerformanceEntry'];
|
||||
|
26
env_xbb_lastest_jsdom/env/PerformanceResourceTiming.js
vendored
Normal file
26
env_xbb_lastest_jsdom/env/PerformanceResourceTiming.js
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
// PerformanceResourceTiming对象
|
||||
bodavm.memory.globalobj['PerformanceResourceTiming'] = function PerformanceResourceTiming(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['PerformanceResourceTiming'], "PerformanceResourceTiming");
|
||||
bodavm.memory.globalobj['PerformanceResourceTiming'].prototype.__proto__=bodavm.memory.globalobj['PerformanceEntry'].prototype;
|
||||
bodavm.memory.globalobj['PerformanceResourceTiming'].__proto__=bodavm.memory.globalobj['PerformanceEntry'];
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "initiatorType", {configurable:true, enumerable:true, get:function initiatorType (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "initiatorType_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "nextHopProtocol", {configurable:true, enumerable:true, get:function nextHopProtocol (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "nextHopProtocol_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "workerStart", {configurable:true, enumerable:true, get:function workerStart (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "workerStart_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "redirectStart", {configurable:true, enumerable:true, get:function redirectStart (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "redirectStart_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "redirectEnd", {configurable:true, enumerable:true, get:function redirectEnd (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "redirectEnd_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "fetchStart", {configurable:true, enumerable:true, get:function fetchStart (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "fetchStart_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "domainLookupStart", {configurable:true, enumerable:true, get:function domainLookupStart (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "domainLookupStart_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "domainLookupEnd", {configurable:true, enumerable:true, get:function domainLookupEnd (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "domainLookupEnd_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "connectStart", {configurable:true, enumerable:true, get:function connectStart (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "connectStart_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "connectEnd", {configurable:true, enumerable:true, get:function connectEnd (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "connectEnd_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "secureConnectionStart", {configurable:true, enumerable:true, get:function secureConnectionStart (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "secureConnectionStart_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "requestStart", {configurable:true, enumerable:true, get:function requestStart (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "requestStart_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "responseStart", {configurable:true, enumerable:true, get:function responseStart (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "responseStart_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "responseEnd", {configurable:true, enumerable:true, get:function responseEnd (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "responseEnd_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "transferSize", {configurable:true, enumerable:true, get:function transferSize (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "transferSize_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "encodedBodySize", {configurable:true, enumerable:true, get:function encodedBodySize (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "encodedBodySize_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "decodedBodySize", {configurable:true, enumerable:true, get:function decodedBodySize (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "decodedBodySize_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "serverTiming", {configurable:true, enumerable:true, get:function serverTiming (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "serverTiming_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "toJSON", {configurable:true, enumerable:true, writable:true, value:function toJSON (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "toJSON", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "renderBlockingStatus", {configurable:true, enumerable:true, get:function renderBlockingStatus (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "renderBlockingStatus_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PerformanceResourceTiming', "responseStatus", {configurable:true, enumerable:true, get:function responseStatus (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PerformanceResourceTiming'].prototype, "PerformanceResourceTiming", "responseStatus_get", arguments)}, set:undefined},'prototype');
|
@ -1,5 +1,5 @@
|
||||
// PermissionStatus对象
|
||||
bodavm.memory.globalobj['PermissionStatus'] = function PermissionStatus(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['PermissionStatus'] = function PermissionStatus(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['PermissionStatus'], "PermissionStatus");
|
||||
bodavm.memory.globalobj['PermissionStatus'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['PermissionStatus'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
2
env_xbb_lastest_jsdom/env/Permissions.js
vendored
2
env_xbb_lastest_jsdom/env/Permissions.js
vendored
@ -1,4 +1,4 @@
|
||||
// Permissions对象
|
||||
bodavm.memory.globalobj['Permissions'] = function Permissions(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Permissions'] = function Permissions(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Permissions'], "Permissions");
|
||||
bodavm.toolsFunc.defineProperty('Permissions', "query", {configurable:true, enumerable:true, writable:true, value:function query (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Permissions'].prototype, "Permissions", "query", arguments)}},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/Plugin.js
vendored
2
env_xbb_lastest_jsdom/env/Plugin.js
vendored
@ -1,5 +1,5 @@
|
||||
// Plugin对象
|
||||
bodavm.memory.globalobj['Plugin'] = function Plugin(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Plugin'] = function Plugin(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Plugin'], "Plugin");
|
||||
bodavm.toolsFunc.defineProperty('Plugin', "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Plugin'].prototype, "Plugin", "name_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('Plugin', "filename", {configurable:true, enumerable:true, get:function filename (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Plugin'].prototype, "Plugin", "filename_get", arguments)}, set:undefined},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/PluginArray.js
vendored
2
env_xbb_lastest_jsdom/env/PluginArray.js
vendored
@ -1,5 +1,5 @@
|
||||
// PluginArray对象
|
||||
bodavm.memory.globalobj['PluginArray'] = function PluginArray(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['PluginArray'] = function PluginArray(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['PluginArray'], "PluginArray");
|
||||
bodavm.toolsFunc.defineProperty('PluginArray', "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PluginArray'].prototype, "PluginArray", "length_get", arguments)}, set:undefined},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('PluginArray', "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['PluginArray'].prototype, "PluginArray", "item", arguments)}},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/PointerEvent.js
vendored
2
env_xbb_lastest_jsdom/env/PointerEvent.js
vendored
@ -1,5 +1,5 @@
|
||||
// PointerEvent对象
|
||||
bodavm.memory.globalobj['PointerEvent'] = function PointerEvent(){
|
||||
bodavm.memory.globalobj['PointerEvent'] = function PointerEvent(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof PointerEvent)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'PointerEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
// PresentationConnectionCloseEvent对象
|
||||
bodavm.memory.globalobj['PresentationConnectionCloseEvent'] = function PresentationConnectionCloseEvent(){
|
||||
bodavm.memory.globalobj['PresentationConnectionCloseEvent'] = function PresentationConnectionCloseEvent(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof PresentationConnectionCloseEvent)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'PresentationConnectionCloseEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
289
env_xbb_lastest_jsdom/env/Promise.js
vendored
289
env_xbb_lastest_jsdom/env/Promise.js
vendored
@ -1,193 +1,174 @@
|
||||
const PENDING = 'pending';
|
||||
const FULFILLED = 'fulfilled';
|
||||
const REJECTED = 'rejected';
|
||||
function Promise(fn) {
|
||||
var self = this;
|
||||
self.value = null;
|
||||
self.error = null;
|
||||
self.status = 'pending';
|
||||
self.onFulfilled = [];
|
||||
self.onRejected = [];
|
||||
|
||||
function Promise(executor) {
|
||||
this.state = PENDING;
|
||||
this.value = null;
|
||||
this.reason = null;
|
||||
this.onFulfilledCallbacks = [];
|
||||
this.onRejectedCallbacks = [];
|
||||
|
||||
const resolve = (value) => {
|
||||
if (this.state === PENDING) {
|
||||
this.state = FULFILLED;
|
||||
this.value = value;
|
||||
this.onFulfilledCallbacks.forEach((fun) => {
|
||||
fun();
|
||||
});
|
||||
function resolve(value) {
|
||||
if (self.status === 'pending') {
|
||||
self.status = 'fulfilled';
|
||||
self.value = value;
|
||||
for (var i = 0; i < self.onFulfilled.length; i++) {
|
||||
setTimeout(function() {
|
||||
self.onFulfilled[i](self.value);
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const reject = (reason) => {
|
||||
if (this.state === PENDING) {
|
||||
this.state = REJECTED;
|
||||
this.reason = reason;
|
||||
this.onRejectedCallbacks.forEach((fun) => {
|
||||
fun();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
try {
|
||||
executor(resolve, reject);
|
||||
} catch (reason) {
|
||||
reject(reason);
|
||||
}
|
||||
function reject(error) {
|
||||
if (self.status === 'pending') {
|
||||
self.status = 'rejected';
|
||||
self.error = error;
|
||||
for (var i = 0; i < self.onRejected.length; i++) {
|
||||
setTimeout(function() {
|
||||
self.onRejected[i](self.error);
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn(resolve, reject);
|
||||
}
|
||||
bodavm.toolsFunc.safeProto(Promise,"Promise");
|
||||
bodavm.toolsFunc.safeFunc(Promise,'Promise')
|
||||
|
||||
|
||||
Promise.prototype.then = function(onFulfilled, onRejected) {
|
||||
var self = this;
|
||||
var promise = new Promise(function(resolve, reject) {
|
||||
function handle(value) {
|
||||
try {
|
||||
var result = onFulfilled(value);
|
||||
if (result instanceof Promise) {
|
||||
result.then(resolve, reject);
|
||||
} else {
|
||||
resolve(result);
|
||||
}
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
}
|
||||
}
|
||||
|
||||
//原型上面的方法
|
||||
//用settimeout来模拟异步调用,保证链式调用,即then方法中要返回一个新的promise,并将then方法的返回值进行resolve
|
||||
Promise.prototype.then = function (onFulfilled, onRejected) {
|
||||
if (typeof onFulfilled != 'function') {
|
||||
onFulfilled = function (value) {
|
||||
return value;
|
||||
};
|
||||
}
|
||||
if (typeof onRejected != 'function') {
|
||||
onRejected = function (reason) {
|
||||
throw reason;
|
||||
};
|
||||
}
|
||||
const promise2 = new Promise((resolve, reject) => {
|
||||
switch (this.state) {
|
||||
case FULFILLED:
|
||||
setTimeout(() => {
|
||||
try {
|
||||
const x = onFulfilled(this.value);
|
||||
resolve(x);
|
||||
} catch (reason) {
|
||||
reject(reason);
|
||||
}
|
||||
}, 0);
|
||||
break;
|
||||
case REJECTED:
|
||||
setTimeout(() => {
|
||||
try {
|
||||
const x = onRejected(this.reason);
|
||||
resolve(x);
|
||||
} catch (reason) {
|
||||
reject(reason);
|
||||
}
|
||||
}, 0);
|
||||
break;
|
||||
case PENDING:
|
||||
this.onFulfilledCallbacks.push(() => {
|
||||
setTimeout(() => {
|
||||
try {
|
||||
const x = onFulfilled(this.value);
|
||||
resolve(x);
|
||||
} catch (reason) {
|
||||
reject(reason);
|
||||
}
|
||||
}, 0);
|
||||
});
|
||||
this.onRejectedCallbacks.push(() => {
|
||||
setTimeout(() => {
|
||||
try {
|
||||
const x = onRejected(this.reason);
|
||||
resolve(x);
|
||||
} catch (reason) {
|
||||
reject(reason);
|
||||
}
|
||||
}, 0);
|
||||
});
|
||||
break;
|
||||
function handleError(error) {
|
||||
try {
|
||||
var result = onRejected(error);
|
||||
if (result instanceof Promise) {
|
||||
result.then(resolve, reject);
|
||||
} else {
|
||||
resolve(result);
|
||||
}
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
}
|
||||
}
|
||||
|
||||
if (self.status === 'fulfilled') {
|
||||
setTimeout(function() {
|
||||
handle(self.value);
|
||||
}, 0);
|
||||
} else if (self.status === 'rejected') {
|
||||
setTimeout(function() {
|
||||
handleError(self.error);
|
||||
}, 0);
|
||||
} else {
|
||||
self.onFulfilled.push(handle);
|
||||
self.onRejected.push(handleError);
|
||||
}
|
||||
});
|
||||
return promise2;
|
||||
};
|
||||
bodavm.toolsFunc.safeFunc(Promise.prototype.then,'then')
|
||||
|
||||
Promise.prototype.catch = function (onRejected) {
|
||||
return promise;
|
||||
};
|
||||
bodavm.toolsFunc.safeFunc(Promise.prototype.then ,'then')
|
||||
|
||||
Promise.prototype.catch = function(onRejected) {
|
||||
return this.then(null, onRejected);
|
||||
};
|
||||
bodavm.toolsFunc.safeFunc(Promise.prototype.catch,'catch')
|
||||
|
||||
|
||||
Promise.prototype.finally = function (fn) {
|
||||
Promise.prototype.finally = function(onFinally) {
|
||||
return this.then(
|
||||
(value) => {
|
||||
fn();
|
||||
return value;
|
||||
function(value) {
|
||||
return Promise.resolve(onFinally()).then(function() {
|
||||
return value;
|
||||
});
|
||||
},
|
||||
(reason) => {
|
||||
fn();
|
||||
throw reason;
|
||||
function(error) {
|
||||
return Promise.resolve(onFinally()).then(function() {
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
);
|
||||
};
|
||||
bodavm.toolsFunc.safeFunc(Promise.prototype.finally,'finally')
|
||||
|
||||
|
||||
//静态方法
|
||||
Promise.resolve = function (value) {
|
||||
return new Promise((resolve, reject) => {
|
||||
Promise.resolve = function(value) {
|
||||
return new Promise(function(resolve) {
|
||||
resolve(value);
|
||||
});
|
||||
};
|
||||
bodavm.toolsFunc.safeFunc(Promise.resolve,'resolve')
|
||||
bodavm.toolsFunc.safeFunc(Promise.resolve ,'resolve')
|
||||
|
||||
Promise.reject = function (reason) {
|
||||
return new Promise((resolve, reject) => {
|
||||
reject(reason);
|
||||
Promise.reject = function(error) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
reject(error);
|
||||
});
|
||||
};
|
||||
bodavm.toolsFunc.safeFunc(Promise.reject,'reject')
|
||||
bodavm.toolsFunc.safeFunc(Promise.reject ,'reject')
|
||||
|
||||
//接受一个promise数组,当所有promise状态resolve后,执行resolve
|
||||
Promise.all = function (promises) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (promises.length === 0) {
|
||||
resolve([]);
|
||||
} else {
|
||||
let result = [];
|
||||
let index = 0;
|
||||
for (let i = 0; i < promises.length; i++) {
|
||||
promises[i].then(
|
||||
(data) => {
|
||||
result[i] = data;
|
||||
if (++index === promises.length) {
|
||||
resolve(result);
|
||||
}
|
||||
},
|
||||
(err) => {
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
);
|
||||
Promise.all = function(promises) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var results = [];
|
||||
var count = 0;
|
||||
|
||||
function handle(i, value) {
|
||||
results[i] = value;
|
||||
count++;
|
||||
|
||||
if (count === promises.length) {
|
||||
resolve(results);
|
||||
}
|
||||
}
|
||||
|
||||
for (var i = 0; i < promises.length; i++) {
|
||||
promises[i].then(handle.bind(null, i), reject);
|
||||
}
|
||||
});
|
||||
};
|
||||
bodavm.toolsFunc.safeFunc(Promise.all,'all')
|
||||
bodavm.toolsFunc.safeFunc(Promise.all ,'all')
|
||||
|
||||
//接受一个promise数组,当有一个promise状态resolve后,执行resolve
|
||||
Promise.race = function (promises) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (promises.length === 0) {
|
||||
resolve();
|
||||
} else {
|
||||
let index = 0;
|
||||
for (let i = 0; i < promises.length; i++) {
|
||||
promises[i].then(
|
||||
(data) => {
|
||||
resolve(data);
|
||||
},
|
||||
(err) => {
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
);
|
||||
}
|
||||
Promise.race = function(promises) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
for (var i = 0; i < promises.length; i++) {
|
||||
promises[i].then(resolve, reject);
|
||||
}
|
||||
});
|
||||
};
|
||||
bodavm.toolsFunc.safeFunc(Promise.race,'race')
|
||||
bodavm.toolsFunc.safeFunc(Promise.race ,'race')
|
||||
|
||||
bodavm.toolsFunc.safeFunc(Promise)
|
||||
Promise.allSettled = function(promises) {
|
||||
return new Promise(function(resolve) {
|
||||
var results = [];
|
||||
var count = 0;
|
||||
|
||||
function handle(i, status) {
|
||||
return function(value) {
|
||||
results[i] = { status: status, value: value };
|
||||
count++;
|
||||
|
||||
if (count === promises.length) {
|
||||
resolve(results);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
for (var i = 0; i < promises.length; i++) {
|
||||
promises[i].then(handle(i, 'fulfilled'), handle(i, 'rejected'));
|
||||
}
|
||||
});
|
||||
};
|
||||
bodavm.toolsFunc.safeFunc(Promise.allSettled ,'allSettled')
|
||||
|
||||
// bodavm.toolsFunc.safeFunc(Promise)
|
||||
// globalMy.rename(Promise.prototype,"Promise")
|
||||
|
||||
|
2
env_xbb_lastest_jsdom/env/RTCDataChannel.js
vendored
2
env_xbb_lastest_jsdom/env/RTCDataChannel.js
vendored
@ -1,5 +1,5 @@
|
||||
// RTCDataChannel对象
|
||||
bodavm.memory.globalobj['RTCDataChannel'] = function RTCDataChannel(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['RTCDataChannel'] = function RTCDataChannel(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['RTCDataChannel'], "RTCDataChannel");
|
||||
bodavm.memory.globalobj['RTCDataChannel'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['RTCDataChannel'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
@ -1,5 +1,5 @@
|
||||
// RTCPeerConnection对象
|
||||
bodavm.memory.globalobj['RTCPeerConnection'] = function RTCPeerConnection(){
|
||||
bodavm.memory.globalobj['RTCPeerConnection'] = function RTCPeerConnection(){this._boisinit=bodavm.config.isinit;
|
||||
|
||||
if (!(this instanceof RTCPeerConnection)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'RTCPeerConnection': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
@ -54,3 +54,7 @@ bodavm.toolsFunc.defineProperty('RTCPeerConnection', "restartIce", {configurable
|
||||
bodavm.toolsFunc.defineProperty('RTCPeerConnection', "setConfiguration", {configurable:true, enumerable:true, writable:true, value:function setConfiguration (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['RTCPeerConnection'].prototype, "RTCPeerConnection", "setConfiguration", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('RTCPeerConnection', "setLocalDescription", {configurable:true, enumerable:true, writable:true, value:function setLocalDescription (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['RTCPeerConnection'].prototype, "RTCPeerConnection", "setLocalDescription", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('RTCPeerConnection', "setRemoteDescription", {configurable:true, enumerable:true, writable:true, value:function setRemoteDescription (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['RTCPeerConnection'].prototype, "RTCPeerConnection", "setRemoteDescription", arguments)}},'prototype');
|
||||
|
||||
|
||||
// bodavm.memory.globalobj['webkitRTCPeerConnection']=bodavm.memory.globalobj['RTCPeerConnection']
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// RTCSessionDescription对象
|
||||
bodavm.memory.globalobj['RTCSessionDescription'] = function RTCSessionDescription(){}
|
||||
bodavm.memory.globalobj['RTCSessionDescription'] = function RTCSessionDescription(){this._boisinit=bodavm.config.isinit;}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['RTCSessionDescription'], "RTCSessionDescription");
|
||||
bodavm.toolsFunc.defineProperty('RTCSessionDescription', "type", {configurable:true, enumerable:true, get:function type (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['RTCSessionDescription'].prototype, "RTCSessionDescription", "type_get", arguments)}, set:function type (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['RTCSessionDescription'].prototype, "RTCSessionDescription", "type_set", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('RTCSessionDescription', "sdp", {configurable:true, enumerable:true, get:function sdp (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['RTCSessionDescription'].prototype, "RTCSessionDescription", "sdp_get", arguments)}, set:function sdp (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['RTCSessionDescription'].prototype, "RTCSessionDescription", "sdp_set", arguments)}},'prototype');
|
||||
|
2
env_xbb_lastest_jsdom/env/Request.js
vendored
2
env_xbb_lastest_jsdom/env/Request.js
vendored
@ -1,5 +1,5 @@
|
||||
// Request对象
|
||||
bodavm.memory.globalobj['Request'] = function Request(){
|
||||
bodavm.memory.globalobj['Request'] = function Request(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof Request)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'Request': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
2
env_xbb_lastest_jsdom/env/SVGElement.js
vendored
2
env_xbb_lastest_jsdom/env/SVGElement.js
vendored
@ -1,5 +1,5 @@
|
||||
// SVGElement对象
|
||||
bodavm.memory.globalobj['SVGElement'] = function SVGElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['SVGElement'] = function SVGElement(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SVGElement'], "SVGElement");
|
||||
bodavm.memory.globalobj['SVGElement'].prototype.__proto__=bodavm.memory.globalobj['Element'].prototype;
|
||||
bodavm.memory.globalobj['SVGElement'].__proto__=bodavm.memory.globalobj['Element'];
|
||||
|
2
env_xbb_lastest_jsdom/env/SVGGElement.js
vendored
2
env_xbb_lastest_jsdom/env/SVGGElement.js
vendored
@ -1,5 +1,5 @@
|
||||
// SVGGElement对象
|
||||
bodavm.memory.globalobj['SVGGElement'] = function SVGGElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['SVGGElement'] = function SVGGElement(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SVGGElement'], "SVGGElement");
|
||||
bodavm.memory.globalobj['SVGGElement'].prototype.__proto__=bodavm.memory.globalobj['SVGGraphicsElement'].prototype;
|
||||
bodavm.memory.globalobj['SVGGElement'].__proto__=bodavm.memory.globalobj['SVGGraphicsElement'];
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SVGGeometryElement对象
|
||||
bodavm.memory.globalobj['SVGGeometryElement'] = function SVGGeometryElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['SVGGeometryElement'] = function SVGGeometryElement(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SVGGeometryElement'], "SVGGeometryElement");
|
||||
bodavm.memory.globalobj['SVGGeometryElement'].prototype.__proto__=bodavm.memory.globalobj['SVGGraphicsElement'].prototype;
|
||||
bodavm.memory.globalobj['SVGGeometryElement'].__proto__=bodavm.memory.globalobj['SVGGraphicsElement'];
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SVGGraphicsElement对象
|
||||
bodavm.memory.globalobj['SVGGraphicsElement'] = function SVGGraphicsElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['SVGGraphicsElement'] = function SVGGraphicsElement(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SVGGraphicsElement'], "SVGGraphicsElement");
|
||||
bodavm.memory.globalobj['SVGGraphicsElement'].prototype.__proto__=bodavm.memory.globalobj['SVGElement'].prototype;
|
||||
bodavm.memory.globalobj['SVGGraphicsElement'].__proto__=bodavm.memory.globalobj['SVGElement'];
|
||||
|
2
env_xbb_lastest_jsdom/env/SVGPathElement.js
vendored
2
env_xbb_lastest_jsdom/env/SVGPathElement.js
vendored
@ -1,5 +1,5 @@
|
||||
// SVGPathElement对象
|
||||
bodavm.memory.globalobj['SVGPathElement'] = function SVGPathElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['SVGPathElement'] = function SVGPathElement(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SVGPathElement'], "SVGPathElement");
|
||||
bodavm.memory.globalobj['SVGPathElement'].prototype.__proto__=bodavm.memory.globalobj['SVGGeometryElement'].prototype;
|
||||
bodavm.memory.globalobj['SVGPathElement'].__proto__=bodavm.memory.globalobj['SVGGeometryElement'];
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SVGPatternElement对象
|
||||
bodavm.memory.globalobj['SVGPatternElement'] = function SVGPatternElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['SVGPatternElement'] = function SVGPatternElement(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SVGPatternElement'], "SVGPatternElement");
|
||||
bodavm.memory.globalobj['SVGPatternElement'].prototype.__proto__=bodavm.memory.globalobj['SVGElement'].prototype;
|
||||
bodavm.memory.globalobj['SVGPatternElement'].__proto__=bodavm.memory.globalobj['SVGElement'];
|
||||
|
2
env_xbb_lastest_jsdom/env/SVGSVGElement.js
vendored
2
env_xbb_lastest_jsdom/env/SVGSVGElement.js
vendored
@ -1,5 +1,5 @@
|
||||
// SVGSVGElement对象
|
||||
bodavm.memory.globalobj['SVGSVGElement'] = function SVGSVGElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['SVGSVGElement'] = function SVGSVGElement(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SVGSVGElement'], "SVGSVGElement");
|
||||
bodavm.memory.globalobj['SVGSVGElement'].prototype.__proto__=bodavm.memory.globalobj['SVGGraphicsElement'].prototype;
|
||||
bodavm.memory.globalobj['SVGSVGElement'].__proto__=bodavm.memory.globalobj['SVGGraphicsElement'];
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SVGSymbolElement对象
|
||||
bodavm.memory.globalobj['SVGSymbolElement'] = function SVGSymbolElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['SVGSymbolElement'] = function SVGSymbolElement(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SVGSymbolElement'], "SVGSymbolElement");
|
||||
bodavm.memory.globalobj['SVGSymbolElement'].prototype.__proto__=bodavm.memory.globalobj['SVGElement'].prototype;
|
||||
bodavm.memory.globalobj['SVGSymbolElement'].__proto__=bodavm.memory.globalobj['SVGElement'];
|
||||
|
2
env_xbb_lastest_jsdom/env/SVGUseElement.js
vendored
2
env_xbb_lastest_jsdom/env/SVGUseElement.js
vendored
@ -1,5 +1,5 @@
|
||||
// SVGUseElement对象
|
||||
bodavm.memory.globalobj['SVGUseElement'] = function SVGUseElement(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['SVGUseElement'] = function SVGUseElement(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SVGUseElement'], "SVGUseElement");
|
||||
bodavm.memory.globalobj['SVGUseElement'].prototype.__proto__=bodavm.memory.globalobj['SVGGraphicsElement'].prototype;
|
||||
bodavm.memory.globalobj['SVGUseElement'].__proto__=bodavm.memory.globalobj['SVGGraphicsElement'];
|
||||
|
4
env_xbb_lastest_jsdom/env/Scheduler.js
vendored
4
env_xbb_lastest_jsdom/env/Scheduler.js
vendored
@ -1,8 +1,8 @@
|
||||
// Scheduler对象
|
||||
bodavm.memory.globalobj['Scheduler'] = function Scheduler(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Scheduler'] = function Scheduler(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Scheduler'], "Scheduler");
|
||||
bodavm.toolsFunc.defineProperty('Scheduler', "postTask", {configurable:true, enumerable:true, writable:true, value:function postTask (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Scheduler'].prototype, "Scheduler", "postTask", arguments)}},'prototype');
|
||||
|
||||
// scheduler对象
|
||||
bodavm.memory.globalobj[ 'scheduler'] = {}
|
||||
bodavm.memory.globalobj[ 'scheduler'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'scheduler'] .__proto__=bodavm.memory.globalobj['Scheduler'].prototype;
|
||||
|
4
env_xbb_lastest_jsdom/env/Screen.js
vendored
4
env_xbb_lastest_jsdom/env/Screen.js
vendored
@ -1,5 +1,5 @@
|
||||
// Screen对象
|
||||
bodavm.memory.globalobj['Screen'] = function Screen(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['Screen'] = function Screen(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Screen'], "Screen");
|
||||
bodavm.memory.globalobj['Screen'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['Screen'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
@ -15,7 +15,7 @@ bodavm.toolsFunc.defineProperty('Screen', "orientation", {configurable:true, enu
|
||||
bodavm.toolsFunc.defineProperty('Screen', "onchange", {configurable:true, enumerable:true, get:function onchange (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Screen'].prototype, "Screen", "onchange_get", arguments)}, set:function onchange (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Screen'].prototype, "Screen", "onchange_set", arguments)}},'prototype');
|
||||
bodavm.toolsFunc.defineProperty('Screen', "isExtended", {configurable:true, enumerable:true, get:function isExtended (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Screen'].prototype, "Screen", "isExtended_get", arguments)}, set:undefined},'prototype');
|
||||
|
||||
bodavm.memory.globalobj[ 'screen'] = {}
|
||||
bodavm.memory.globalobj[ 'screen'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'screen'].__proto__=bodavm.memory.globalobj['Screen'].prototype;
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// ScreenOrientation对象
|
||||
bodavm.memory.globalobj['ScreenOrientation'] = function ScreenOrientation(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['ScreenOrientation'] = function ScreenOrientation(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['ScreenOrientation'], "ScreenOrientation");
|
||||
bodavm.memory.globalobj['ScreenOrientation'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['ScreenOrientation'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
2
env_xbb_lastest_jsdom/env/SourceBuffer.js
vendored
2
env_xbb_lastest_jsdom/env/SourceBuffer.js
vendored
@ -1,5 +1,5 @@
|
||||
// SourceBuffer对象
|
||||
bodavm.memory.globalobj['SourceBuffer'] = function SourceBuffer(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.memory.globalobj['SourceBuffer'] = function SourceBuffer(){this._boisinit=bodavm.config.isinit;return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SourceBuffer'], "SourceBuffer");
|
||||
bodavm.memory.globalobj['SourceBuffer'].prototype.__proto__=bodavm.memory.globalobj['EventTarget'].prototype;
|
||||
bodavm.memory.globalobj['SourceBuffer'].__proto__=bodavm.memory.globalobj['EventTarget'];
|
||||
|
4
env_xbb_lastest_jsdom/env/SpeechSynthesis.js
vendored
4
env_xbb_lastest_jsdom/env/SpeechSynthesis.js
vendored
@ -1,4 +1,4 @@
|
||||
bodavm.memory.globalobj['SpeechSynthesis'] = function SpeechSynthesis() { return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor") }
|
||||
bodavm.memory.globalobj['SpeechSynthesis'] = function SpeechSynthesis() {this._boisinit=bodavm.config.isinit; return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor") }
|
||||
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['SpeechSynthesis'], "SpeechSynthesis");
|
||||
bodavm.toolsFunc.defineProperty('SpeechSynthesis', "cancel", { writable: true, enumerable: true, configurable: true, value: function cancel() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['SpeechSynthesis'] .prototype, "SpeechSynthesis", "cancel", arguments) } },'prototype');
|
||||
bodavm.toolsFunc.defineProperty('SpeechSynthesis', "getVoices", { writable: true, enumerable: true, configurable: true, value: function getVoices() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['SpeechSynthesis'] .prototype, "SpeechSynthesis", "getVoices", arguments) } },'prototype');
|
||||
@ -12,6 +12,6 @@ bodavm.toolsFunc.defineProperty('SpeechSynthesis', "onvoiceschanged", { configur
|
||||
|
||||
|
||||
// speechSynthesis对象
|
||||
bodavm.memory.globalobj[ 'speechSynthesis'] = {}
|
||||
bodavm.memory.globalobj[ 'speechSynthesis'] = { _boisinit:bodavm.config.isinit}
|
||||
bodavm.memory.globalobj[ 'speechSynthesis'].__proto__=bodavm.memory.globalobj['SpeechSynthesis'] .prototype;
|
||||
delete SpeechSynthesis
|
@ -1,5 +1,5 @@
|
||||
// SpeechSynthesisUtterance对象
|
||||
bodavm.memory.globalobj['SpeechSynthesisUtterance'] = function SpeechSynthesisUtterance(){
|
||||
bodavm.memory.globalobj['SpeechSynthesisUtterance'] = function SpeechSynthesisUtterance(){this._boisinit=bodavm.config.isinit;
|
||||
if (!(this instanceof SpeechSynthesisUtterance)) {
|
||||
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'SpeechSynthesisUtterance': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
|
||||
};
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user