diff --git a/test/mjsunit/web-snapshot/web-snapshot.js b/test/mjsunit/web-snapshot/web-snapshot.js index 50366ff745..b9869ed053 100644 --- a/test/mjsunit/web-snapshot/web-snapshot.js +++ b/test/mjsunit/web-snapshot/web-snapshot.js @@ -20,7 +20,10 @@ function takeAndUseWebSnapshot(createObjects, exports) { const r2 = Realm.create(); const success = Realm.useWebSnapshot(r2, snapshot); assertTrue(success); - return Realm.eval(r2, use, { type: 'function', arguments: [exports] }); + const result = + Realm.eval(r2, use, { type: 'function', arguments: [exports] }); + %HeapObjectVerify(result); + return result; } (function TestMinimal() {