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

47 lines
1.6 KiB
JavaScript

// PasswordCredential对象
PasswordCredential = function PasswordCredential() {
let arg = arguments[0];
if (arg != 'bobo' && (this instanceof PasswordCredential)) {
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'PasswordCredential': 1 argument required, but only 0 present.");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('PasswordCredential 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(PasswordCredential, "PasswordCredential");
PasswordCredential.prototype.__proto__ = Credential.prototype;
PasswordCredential.__proto__ = Credential;
bodavm.toolsFunc.defineProperty(PasswordCredential.prototype, "password", {
configurable: true,
enumerable: true,
get: function password() {
return bodavm.toolsFunc.dispatch(this, PasswordCredential.prototype, "PasswordCredential", "password_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(PasswordCredential.prototype, "name", {
configurable: true,
enumerable: true,
get: function name() {
return bodavm.toolsFunc.dispatch(this, PasswordCredential.prototype, "PasswordCredential", "name_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(PasswordCredential.prototype, "iconURL", {
configurable: true,
enumerable: true,
get: function iconURL() {
return bodavm.toolsFunc.dispatch(this, PasswordCredential.prototype, "PasswordCredential", "iconURL_get", arguments);
},
set: undefined
});