mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 11:41:11 +08:00
14 lines
1.5 KiB
JavaScript
14 lines
1.5 KiB
JavaScript
|
|
|
|
// BarProp对象
|
|
bodavm.memory.globalobj['Database'] = function Database() { return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor") }
|
|
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Database'] , "Database");
|
|
bodavm.toolsFunc.defineProperty('Database' , "version", { configurable: true, enumerable: true, get: function version() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Database'].prototype, "Database", "version", arguments) }, set: undefined },'prototype');
|
|
bodavm.toolsFunc.defineProperty('Database' , "readTransaction", { configurable: true, enumerable: true, writable: true, value: function readTransaction() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Database'].prototype, "Database", "readTransaction", arguments) } },'prototype');
|
|
bodavm.toolsFunc.defineProperty('Database' , "transaction", { configurable: true, enumerable: true, writable: true, value: function transaction() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Database'].prototype, "Database", "transaction", arguments) } },'prototype');
|
|
bodavm.toolsFunc.defineProperty('Database' , "changeVersion", { configurable: true, enumerable: true, writable: true, value: function changeVersion() { return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Database'].prototype, "Database", "changeVersion", arguments) } },'prototype');
|
|
|
|
bodavm.memory.globalobj[ 'database'] = {}
|
|
bodavm.memory.globalobj[ 'database'] .__proto__ = bodavm.memory.globalobj['Database'] .prototype
|
|
|