Commit d72667a
[build] Apply patches (elastic#265162)
Follow up to elastic#263121, which also
needs to run on the build.
https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/8279
```
jon@mbp % tar xzf kibana-9.4.0-SNAPSHOT-linux-x86_64.tar.gz --to-stdout kibana-9.4.0-SNAPSHOT/node_modules/zod/v4/classic/schemas.cjs | head -160 | tail -35
const checks = __importStar(require("./checks.cjs"));
const iso = __importStar(require("./iso.cjs"));
const parse = __importStar(require("./parse.cjs"));
// Maps (internalProto, key) pairs already initialized — avoids repeated prototype setup
const _protoInitMap = new WeakMap();
/**
* Sets shared methods on the *internal* prototype layer of inst's concrete constructor
* (once per concrete type per key). The internal prototype sits one level below the
* user-visible `_.prototype`, keeping `Object.keys(_.prototype)` empty by default
* and preventing V8 dictionary-mode degradation.
*
* Falls back to `Object.getPrototypeOf(inst)` for constructors not created with
* `$constructor` (e.g., in tests or third-party code).
*/
function _initProto(inst, key, methods, defineProps) {
const proto = inst._zod?.constr?.[core.$internalProto] ?? Object.getPrototypeOf(inst);
```1 parent 8779857 commit d72667a
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
38 | 55 | | |
39 | 56 | | |
0 commit comments