mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 06:49:27 +08:00
11 lines
472 B
JavaScript
11 lines
472 B
JavaScript
// Audio对象
|
|
bodavm.memory.globalobj['Audio'] = function Audio(){
|
|
if (!(this instanceof 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")
|
|
};
|
|
|
|
|
|
}
|
|
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Audio'], "Audio");
|
|
bodavm.memory.globalobj['Audio'].prototype.__proto__=bodavm.memory.globalobj['HTMLMediaElement'].prototype;
|