mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
71 lines
2.3 KiB
JavaScript
71 lines
2.3 KiB
JavaScript
// RTCError对象
|
|
|
|
RTCError = function RTCError() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo' && (this instanceof RTCError)) {
|
|
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'RTCError': 1 argument required, but only 0 present.");
|
|
}
|
|
;
|
|
bodavm.toolsFunc.symbolProperty(this);
|
|
if (arg != 'bobo') {
|
|
console.log_copy('RTCError 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodavm.toolsFunc.safeProto(RTCError, "RTCError");
|
|
RTCError.prototype.__proto__ = DOMException.prototype;
|
|
RTCError.__proto__ = DOMException;
|
|
bodavm.toolsFunc.defineProperty(RTCError.prototype, "errorDetail", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function errorDetail() {
|
|
return bodavm.toolsFunc.dispatch(this, RTCError.prototype, "RTCError", "errorDetail_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(RTCError.prototype, "sdpLineNumber", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function sdpLineNumber() {
|
|
return bodavm.toolsFunc.dispatch(this, RTCError.prototype, "RTCError", "sdpLineNumber_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(RTCError.prototype, "httpRequestStatusCode", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function httpRequestStatusCode() {
|
|
return bodavm.toolsFunc.dispatch(this, RTCError.prototype, "RTCError", "httpRequestStatusCode_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(RTCError.prototype, "sctpCauseCode", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function sctpCauseCode() {
|
|
return bodavm.toolsFunc.dispatch(this, RTCError.prototype, "RTCError", "sctpCauseCode_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(RTCError.prototype, "receivedAlert", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function receivedAlert() {
|
|
return bodavm.toolsFunc.dispatch(this, RTCError.prototype, "RTCError", "receivedAlert_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(RTCError.prototype, "sentAlert", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function sentAlert() {
|
|
return bodavm.toolsFunc.dispatch(this, RTCError.prototype, "RTCError", "sentAlert_get", arguments);
|
|
},
|
|
set: undefined
|
|
}); |