script: Don't panic on IndexedDB put operation structured clone (#38280)

Fixes panic by rethrowing exceptions.

Testing: Covered by WPT
Fixes: #38075

---------

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
Ashwin Naren 2025-07-26 22:05:10 +05:30 committed by GitHub
parent e1bda86861
commit 4188852963
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 3 additions and 86 deletions

View file

@ -215,8 +215,7 @@ impl IDBObjectStore {
}
}
let serialized_value =
structuredclone::write(cx, value, None).expect("Could not serialize value");
let serialized_value = structuredclone::write(cx, value, None)?;
IDBRequest::execute_async(
self,