0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-26 00:59:28 -05:00

fix(json): relax lifetime for json_object (#778)

Amongst other things this will enable serde_v8 to print JSON object dumps
This commit is contained in:
Aaron O'Mullan 2021-09-13 23:34:17 +02:00 committed by GitHub
parent 70b42b2cac
commit 8094d5d971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ pub fn parse<'s>(
/// it as string if successful.
pub fn stringify<'s>(
scope: &mut HandleScope<'s>,
json_object: Local<'s, Value>,
json_object: Local<'_, Value>,
) -> Option<Local<'s, String>> {
unsafe {
scope.cast_local(|sd| {