feat: implement assert

This commit is contained in:
2026-01-03 18:44:46 +08:00
parent 159267c70b
commit 45d777a157
4 changed files with 8 additions and 19 deletions

View File

@@ -353,7 +353,7 @@ fn to_value<'a, 'b>(val: v8::Local<'a, v8::Value>, ctx: &RuntimeContext<'a, 'b>)
.collect();
Value::AttrSet(AttrSet::new(attrs))
}
_ => todo!("{}", val.type_repr()),
_ => unimplemented!("can not convert {} to NixValue", val.type_repr()),
}
}