Index: test/mjsunit/wasm/stack.js |
diff --git a/test/mjsunit/wasm/stack.js b/test/mjsunit/wasm/stack.js |
index 538c10e543a0e00c12ccd43afa0ea11cfba57887..650b1436a206e1352b75e7d346589c7a947ed2fe 100644 |
--- a/test/mjsunit/wasm/stack.js |
+++ b/test/mjsunit/wasm/stack.js |
@@ -145,5 +145,13 @@ Error.prepareStackTrace = function(error, frames) { |
fail("expected wasm exception"); |
} catch (e) { |
assertEquals("Maximum call stack size exceeded", e.message, "trap reason"); |
+ assertTrue(e.stack.length >= 4, "expected at least 4 stack entries"); |
+ verifyStack(e.stack.splice(0, 4), [ |
+ // isWasm function line pos file |
+ [ true, "recursion", 0, 0, null], |
+ [ true, "recursion", 0, 3, null], |
+ [ true, "recursion", 0, 3, null], |
+ [ true, "recursion", 0, 3, null] |
+ ]); |
} |
})(); |