Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
15
node_modules/fast-check/lib/arbitrary/_internals/helpers/NoUndefinedAsContext.js
generated
vendored
Normal file
15
node_modules/fast-check/lib/arbitrary/_internals/helpers/NoUndefinedAsContext.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UndefinedContextPlaceholder = void 0;
|
||||
exports.noUndefinedAsContext = noUndefinedAsContext;
|
||||
const Value_1 = require("../../../check/arbitrary/definition/Value");
|
||||
exports.UndefinedContextPlaceholder = Symbol('UndefinedContextPlaceholder');
|
||||
function noUndefinedAsContext(value) {
|
||||
if (value.context !== undefined) {
|
||||
return value;
|
||||
}
|
||||
if (value.hasToBeCloned) {
|
||||
return new Value_1.Value(value.value_, exports.UndefinedContextPlaceholder, () => value.value);
|
||||
}
|
||||
return new Value_1.Value(value.value_, exports.UndefinedContextPlaceholder);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue