Replace YAML parser
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user