Replace YAML parser

This commit is contained in:
Zef Hemel
2023-11-29 16:51:28 +01:00
parent 62e98b1fd8
commit 1d5c6f9277
9 changed files with 55 additions and 12 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import {
replaceNodesMatchingAsync,
} from "$sb/lib/tree.ts";
import { YAML } from "$sb/plugos-syscall/mod.ts";
import { YAML } from "$sb/syscalls.ts";
/**
* Extracts attributes from a tree, optionally cleaning them out of the tree.
+1 -1
View File
@@ -3,7 +3,7 @@ import { YAML } from "../../common/deps.ts";
globalThis.syscall = (name: string, ...args: readonly any[]) => {
switch (name) {
case "yaml.parse":
return Promise.resolve(YAML.parse(args[0]));
return Promise.resolve(YAML.load(args[0]));
default:
throw Error(`Not implemented in tests: ${name}`);
}