mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-19 02:24:42 +08:00
28 lines
1.1 KiB
JavaScript
28 lines
1.1 KiB
JavaScript
// OverconstrainedError对象
|
|
|
|
bodaEnv.memory.globlProtoObj["OverconstrainedError"] = function OverconstrainedError() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo') {
|
|
bodaEnv.toolsFunc.console_copy('OverconstrainedError 实例化对象 --->', bodaEnv.toolsFunc.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodaEnv.toolsFunc.safeProto(bodaEnv.memory.globlProtoObj["OverconstrainedError"], "OverconstrainedError");
|
|
bodaEnv.memory.globlProtoObj["OverconstrainedError"].prototype.__proto__ = bodaEnv.memory.globlProtoObj["DOMException"].prototype;
|
|
bodaEnv.memory.globlProtoObj["OverconstrainedError"].__proto__ = bodaEnv.memory.globlProtoObj["DOMException"];
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["OverconstrainedError"].prototype, "constraint", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: {
|
|
constraint() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["OverconstrainedError"].prototype, "OverconstrainedError", "constraint_get", arguments);
|
|
}
|
|
}.constraint,
|
|
set: undefined
|
|
}); |