deploy: v0.12 fix 存档key名

This commit is contained in:
2026-06-24 03:09:02 +00:00
parent 7a08d49fe3
commit e0a5281119
58743 changed files with 7297269 additions and 39505 deletions
+15
View File
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cloneMethod = void 0;
exports.hasCloneMethod = hasCloneMethod;
exports.cloneIfNeeded = cloneIfNeeded;
exports.cloneMethod = Symbol.for('fast-check/cloneMethod');
function hasCloneMethod(instance) {
return (instance !== null &&
(typeof instance === 'object' || typeof instance === 'function') &&
exports.cloneMethod in instance &&
typeof instance[exports.cloneMethod] === 'function');
}
function cloneIfNeeded(instance) {
return hasCloneMethod(instance) ? instance[exports.cloneMethod]() : instance;
}