0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-27 01:29:19 -05:00
denoland-rusty-v8/tests
Ben Noordhuis 3fa9fb36ed
Fix runtime assert when hashing module object (#522)
The blanket `std:#️⃣:Hash` impl for instances of `v8::Data` invokes
`v8::internal::Object::GetHash()` but that crashes for `v8::Module`
objects. Use a custom impl that calls `v8::Module::get_identity_hash()`.

Fixes the following runtime assertion:

    # Fatal error in ../../../v8/src/objects/objects-inl.h, line 1043
    # Debug check failed: object.IsJSReceiver().

Refs: https://github.com/denoland/deno/pull/8354#discussion_r522157813
2020-11-15 00:07:52 +01:00
..
compile_fail ci: upgrade to Rust 1.46.0 (#443) 2020-08-27 23:38:53 +02:00
slots.rs Simplify 'Isolate::get/set_slot()' and use optimized hasher (#461) 2020-09-07 19:50:36 +02:00
test_api.rs Fix runtime assert when hashing module object (#522) 2020-11-15 00:07:52 +01:00
test_api_entropy_source.rs Add V8::set_entropy_source() (#460) 2020-09-08 03:01:36 +02:00
test_api_flags.rs Add V8::set_flags_from_string() (#457) 2020-09-06 15:40:07 -04:00
test_ui.rs Rewrite the scope system from scratch (#406) 2020-06-26 01:42:00 +02:00