mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-15 00:18:06 -05:00
Reduce explicit Val::Static()
This commit is contained in:
@@ -32,7 +32,7 @@ impl VsArray {
|
||||
object: VsObject {
|
||||
string_map: Default::default(),
|
||||
symbol_map: Default::default(),
|
||||
prototype: Some(Val::Static(&ARRAY_PROTOTYPE)),
|
||||
prototype: Some(ARRAY_PROTOTYPE.to_val()),
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -43,7 +43,7 @@ impl VsArray {
|
||||
object: VsObject {
|
||||
string_map: Default::default(),
|
||||
symbol_map: Default::default(),
|
||||
prototype: Some(Val::Static(&ARRAY_PROTOTYPE)),
|
||||
prototype: Some(ARRAY_PROTOTYPE.to_val()),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user