Skip to content

Commit e921be5

Browse files
gahaasCommit Bot
authored andcommitted
[wasm] Avoid checking for scheduled_exceptions in the wasm deserialization
ValueDeserializer::ReadWasmModule does not call API functions, therefore there can be no scheduled_exceptions, and therefore we do not have to translate scheduled_exceptions to pending_exceptions. On the contrary, there can be pending_exceptions, which causes the call to RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION to crash. This CL fixes a crash in a layout test which was caused by another CL (https://crrev.com/c/975547). [email protected] CC=​[email protected] Change-Id: I3078a2a9a532b079b5a4ea604c2f3f777fa2e287 Reviewed-on: https://chromium-review.googlesource.com/1006794 Reviewed-by: Michael Starzinger <[email protected]> Commit-Queue: Andreas Haas <[email protected]> Cr-Commit-Position: refs/heads/master@{#52547}
1 parent 3e7b7ed commit e921be5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/value-serializer.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,6 @@ MaybeHandle<JSObject> ValueDeserializer::ReadWasmModule() {
17961796
result = isolate_->wasm_engine()->SyncCompile(
17971797
isolate_, &thrower, wasm::ModuleWireBytes(wire_bytes));
17981798
}
1799-
RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate_, JSObject);
18001799
uint32_t id = next_id_++;
18011800
if (!result.is_null()) {
18021801
AddObjectWithID(id, result.ToHandleChecked());

0 commit comments

Comments
 (0)