Reduce explicit Val::Static()

This commit is contained in:
Andrew Morris
2023-05-26 14:25:20 +10:00
parent e0b66ca93f
commit 67ba0d9a03
9 changed files with 64 additions and 58 deletions

View File

@@ -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()),
},
};
}