[Git][ghc/ghc][wip/js-staging] fix typo in dumpStackTop function

Luite Stegeman (@luite) gitlab at gitlab.haskell.org
Wed Oct 19 16:10:38 UTC 2022



Luite Stegeman pushed to branch wip/js-staging at Glasgow Haskell Compiler / GHC


Commits:
f47eeb54 by Luite Stegeman at 2022-10-19T18:09:09+02:00
fix typo in dumpStackTop function

- - - - -


1 changed file:

- rts/js/rts.js


Changes:

=====================================
rts/js/rts.js
=====================================
@@ -499,7 +499,7 @@ function h$logStack() {
   } else {
     size = gt & 0xff;
   }
-  h$dumpStackTop(h$stack, h$sp-size-2, h$p);
+  h$dumpStackTop(h$stack, h$sp-size-2, h$sp);
   for(var i=Math.max(0,h$sp-size+1); i <= h$sp; i++) {
     if(typeof h$stack[i] === 'undefined') {
       throw "undefined on stack";



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f47eeb543976fcf292689f3fe617b47146ea4e22

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f47eeb543976fcf292689f3fe617b47146ea4e22
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221019/6b34a058/attachment.html>


More information about the ghc-commits mailing list