deno_core icon indicating copy to clipboard operation
deno_core copied to clipboard

`serde_v8::Value` does not implement Hash and Eq, resulting in being unable to serialize into a HashMap

Open gimbling-away opened this issue 2 years ago • 8 comments

Doing something like

let object: HashMap<serde_v8::Value, serde_v8::Value> = serde_v8::from_v8(value).unwrap();

gives two compile time errors.

image image

gimbling-away avatar Mar 08 '22 11:03 gimbling-away

Expected behavior serde_v8::Value should implement Hash and Eq so this can be performed.

gimbling-away avatar Mar 08 '22 11:03 gimbling-away

any update?

gimbling-away avatar Mar 13 '22 05:03 gimbling-away

@AaronO @littledivy please take a look

bartlomieju avatar Apr 27 '22 17:04 bartlomieju

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 27 '22 22:06 stale[bot]

Not stale yet :)

gimbling-away avatar Jun 28 '22 04:06 gimbling-away

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 08 '22 21:09 stale[bot]

Not stale

gimbling-away avatar Sep 09 '22 08:09 gimbling-away

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 09 '22 07:11 stale[bot]