From e1b45452f644de07fab71dcd5662bcaa65e788d9 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Fri, 10 Oct 2025 10:07:21 -0700 Subject: [PATCH] toJs => fromValue --- bin/reef | 4 ++-- src/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/reef b/bin/reef index c533edb..cbe3134 100755 --- a/bin/reef +++ b/bin/reef @@ -2,7 +2,7 @@ import { toBytecode } from "../src/bytecode" import { run } from "../src/index" -import { toJs } from "../src/value" +import { fromValue } from "../src/value" const file = Bun.argv[2] if (!file || !await Bun.file(file).exists()) { @@ -11,4 +11,4 @@ if (!file || !await Bun.file(file).exists()) { } const value = await run(toBytecode(await Bun.file(file).text())) -console.log(toJs(value)) \ No newline at end of file +console.log(fromValue(value)) \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 55e3b3e..51fe917 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,5 +8,5 @@ export async function run(bytecode: Bytecode): Promise { } export { type Bytecode, toBytecode } from "./bytecode" -export { type Value, toValue, toString, toNumber, fromValue as toJs, fromValue, toNull, wrapNative } from "./value" +export { type Value, toValue, toString, toNumber, fromValue, toNull, wrapNative } from "./value" export { VM } from "./vm" \ No newline at end of file