Skip to content

Commit

Permalink
Fix valuescript_wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Jun 25, 2023
1 parent fb7f925 commit 074774d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions valuescript_wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ use std::{
use wasm_bindgen::prelude::*;

use valuescript_compiler::{
asm::Value, assemble, assembly_parser::AssemblyParser, compile as compile_internal,
CompileResult, Diagnostic, ResolvedPath,
asm::{Number, Value},
assemble,
assembly_parser::AssemblyParser,
compile as compile_internal, CompileResult, Diagnostic, ResolvedPath,
};
use valuescript_vm::{
vs_object::VsObject,
Expand Down Expand Up @@ -184,7 +186,7 @@ impl TryToVal for Value {
Value::Undefined => Val::Undefined,
Value::Null => Val::Null,
Value::Bool(b) => b.to_val(),
Value::Number(n) => n.to_val(),
Value::Number(Number(n)) => n.to_val(),
Value::BigInt(n) => n.to_val(),
Value::String(s) => s.to_val(),
Value::Array(arr) => {
Expand Down

0 comments on commit 074774d

Please sign in to comment.