mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 18:26:01 +08:00
11 lines
570 B
JavaScript
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'];
|