Commit 278b154
committed
fix(sea): F3b fixup — skip-gate native-binary check + createRequire
Same skip-gate fix as F2/F4 (DA round 1 H1):
- `before()` verifies `native/sea/index.linux-x64-gnu.node` exists,
skips with a clear "run yarn build:native" message if absent.
- `loadBinding()` uses `createRequire(import.meta.url)` so the
require works under both CJS and the ESM-reparse path mocha 11+
may use (MODULE_TYPELESS_PACKAGE_JSON reparse-as-ESM).
Pre-emptive fix even though F3b wasn't on the DA fixup batch list —
the same defect pattern would have been flagged on the next round.
Co-authored-by: Isaac
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>1 parent ab5e150 commit 278b154
1 file changed
Lines changed: 29 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| |||
82 | 91 | | |
83 | 92 | | |
84 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
85 | 112 | | |
86 | 113 | | |
87 | 114 | | |
88 | 115 | | |
89 | 116 | | |
90 | 117 | | |
91 | | - | |
92 | | - | |
| 118 | + | |
93 | 119 | | |
94 | 120 | | |
95 | | - | |
96 | | - | |
| 121 | + | |
97 | 122 | | |
98 | 123 | | |
99 | 124 | | |
| |||
0 commit comments