This commit is contained in:
Quaternions 2024-10-03 16:26:54 -07:00
parent a4e2137463
commit 6b66009c44

View File

@ -16,8 +16,8 @@ pub struct Context{
}
impl Context{
pub const fn new(dom:WeakDom)->Context{
Context{dom}
pub const fn new(dom:WeakDom)->Self{
Self{dom}
}
pub fn script_singleton(source:String)->(Context,crate::runner::instance::Script){
let dom=WeakDom::new(