mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
Adds host- conformance cases for invalid input, unknown tools, namespaces, search browsing, chaining, validation and counting, and missing modules, with expectations generated from the reference, and Rust tests mirroring the reference's extension tests. HostValue::to_json keeps integral numbers as integers.
5 lines
219 B
JavaScript
5 lines
219 B
JavaScript
const errors = []
|
|
try { require("fs") } catch (e) { errors.push(e.message) }
|
|
try { await import("child_process") } catch (e) { errors.push(e.message) }
|
|
try { require(1) } catch (e) { errors.push(e.name) }
|
|
return errors
|