<p dir="auto">Doing something like</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let object: HashMap&lt;serde_v8::Value, serde_v8::Value&gt; = serde_v8::from_v8(value).unwrap();"><pre class="notranslate"><span class="pl-k">let</span> object<span class="pl-kos">:</span> <span class="pl-smi">HashMap</span><span class="pl-kos">&lt;</span>serde_v8<span class="pl-kos">::</span><span class="pl-smi">Value</span><span class="pl-kos">,</span> serde_v8<span class="pl-kos">::</span><span class="pl-smi">Value</span><span class="pl-kos">&gt;</span> = serde_v8<span class="pl-kos">::</span><span class="pl-en">from_v8</span><span class="pl-kos">(</span>value<span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">unwrap</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">gives two compile time errors.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/93856041/157227939-4befc2f6-fafa-4b8a-abf7-66712c41d76e.png"><img src="https://user-images.githubusercontent.com/93856041/157227939-4befc2f6-fafa-4b8a-abf7-66712c41d76e.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/93856041/157227960-42b89c51-661c-4bc8-851b-4c197044ce91.png"><img src="https://user-images.githubusercontent.com/93856041/157227960-42b89c51-661c-4bc8-851b-4c197044ce91.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected behavior</strong><br>
<code class="notranslate">serde_v8::Value</code> should implement Hash and Eq so this can be performed.</p>
<p dir="auto">When I make <a href="https://github.com/KSXGitHub/yaml-wasm">yaml-wasm</a>, I must open a web server to test it. If <code class="notranslate">fetch</code> can load local file, then a web server is no longer necessary, making automated testing much easier.</p>
<p dir="auto">This would also help a static website development as well.</p>