mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-19 02:24:42 +08:00
66 lines
2.3 KiB
JavaScript
66 lines
2.3 KiB
JavaScript
// PerformanceEntry对象
|
|
|
|
bodaEnv.memory.globlProtoObj["PerformanceEntry"] = function PerformanceEntry() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo') {
|
|
bodaEnv.toolsFunc.console_copy('PerformanceEntry 实例化对象 --->', bodaEnv.toolsFunc.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodaEnv.toolsFunc.safeProto(bodaEnv.memory.globlProtoObj["PerformanceEntry"], "PerformanceEntry");
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["PerformanceEntry"].prototype, "name", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: {
|
|
name() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["PerformanceEntry"].prototype, "PerformanceEntry", "name_get", arguments);
|
|
}
|
|
}.name,
|
|
set: undefined
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["PerformanceEntry"].prototype, "entryType", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: {
|
|
entryType() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["PerformanceEntry"].prototype, "PerformanceEntry", "entryType_get", arguments);
|
|
}
|
|
}.entryType,
|
|
set: undefined
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["PerformanceEntry"].prototype, "startTime", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: {
|
|
startTime() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["PerformanceEntry"].prototype, "PerformanceEntry", "startTime_get", arguments);
|
|
}
|
|
}.startTime,
|
|
set: undefined
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["PerformanceEntry"].prototype, "duration", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: {
|
|
duration() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["PerformanceEntry"].prototype, "PerformanceEntry", "duration_get", arguments);
|
|
}
|
|
}.duration,
|
|
set: undefined
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["PerformanceEntry"].prototype, "toJSON", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
toJSON() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["PerformanceEntry"].prototype, "PerformanceEntry", "toJSON", arguments);
|
|
}
|
|
}.toJSON
|
|
}); |