This commit is contained in:
Quaternions 2024-10-03 16:26:54 -07:00
parent 38a25147ba
commit 9c7b77908e

View File

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