xuxiaobo-bobo fdfd6d6cf1 '0421'
2023-04-21 12:28:19 +08:00

11 lines
610 B
JavaScript

// Comment对象
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;
bodavm.memory.globalobj['Comment'].__proto__=bodavm.memory.globalobj['CharacterData'];