Skip to content

Commit e8a95b3

Browse files
committed
fix: HybridFs subclass, Prettier template literal fixes, path normalisation
- Refactor bash FS adapter from plain object to HybridFs extends InMemoryFs (cleaner, uses super.method() fallbacks instead of delegating 12 methods) - Add normPath() to strip /home/user/ and /tmp/ prefixes from bash paths - Replace nested template literals inside C.dim/C.err/C.ok/C.warn with string concatenation to prevent Prettier mangling - Use url.indexOf instead of regex for curl URL scheme detection - Silence spurious warning for native-globals module in generate-native-dts - Add prettier-ignore for help command template literal - Null-safe result.error in reset_sandbox handler Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 07cc5b5 commit e8a95b3

4 files changed

Lines changed: 175 additions & 215 deletions

File tree

package-lock.json

Lines changed: 35 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/generate-native-dts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ function main() {
231231
const functions = parseRustModule(source);
232232

233233
if (functions.length === 0) {
234-
console.warn(` ⚠️ No #[rquickjs::function] found in ${moduleDir}`);
234+
// native-globals registers globals (TextEncoder, crypto, etc.) on
235+
// globalThis — it doesn't export module functions. Skip silently.
235236
continue;
236237
}
237238

0 commit comments

Comments
 (0)