boda_jsEnv/env_xbb_lastest_bo/env/webkitSpeechGrammar.js
xuxiaobo-bobo 24cbc7a3fa '0711'
2023-07-11 15:19:33 +08:00

37 lines
1.5 KiB
JavaScript

// SpeechGrammar对象
bodavm.memory.notDefined['webkitSpeechGrammar'] = function () {
if (arg != 'bobo') {
console.log_copy('webkitSpeechGrammar 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "src", {
configurable: true,
enumerable: true,
get: function src() {
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "src", "src_get", arguments);
},
set: function src() {
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "src", "src_set", arguments);
}
});
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "weight", {
configurable: true,
enumerable: true,
get: function weight() {
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "weight", "weight_get", arguments);
},
set: function weight() {
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "weight", "weight_set", arguments);
}
});
bodavm.toolsFunc.safeProto(bodavm.memory.notDefined['webkitSpeechGrammar'], 'webkitSpeechGrammar');
delete bodavm.memory.notDefined['webkitSpeechGrammar'].constructor;
webkitSpeechGrammar = bodavm.memory.notDefined['webkitSpeechGrammar'];
//debugger;