xuxiaobo-bobo a27aa6f31b '0605'
2023-06-05 23:25:43 +08:00

11 lines
570 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")
}
}
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'];