[Git][ghc/ghc][wip/js-staging] fix isJsCore predicates for base package

Luite Stegeman (@luite) gitlab at gitlab.haskell.org
Thu Oct 20 13:56:40 UTC 2022



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


Commits:
44ff25ed by Luite Stegeman at 2022-10-20T15:56:10+02:00
fix isJsCore predicates for base package

- - - - -


1 changed file:

- libraries/base/jsbits/base.js


Changes:

=====================================
libraries/base/jsbits/base.js
=====================================
@@ -687,7 +687,7 @@ if(h$isNode()) {
         printErr(h$decodeUtf8(buf, n, buf_offset));
         c(n);
     }
-} else if(h$isJsCore) {
+} else if(h$isJsCore()) {
     h$base_readStdin = function(fd, fdo, buf, buf_offset, n, c) {
 	c(0);
     }
@@ -758,7 +758,7 @@ function h$shutdownHaskellAndExit(code, fast) {
 #ifndef GHCJS_BROWSER
 #ifdef GHCJS_LOG_BUFFER
     if(h$isNode()) console.log(h$logBuffer);
-    if(h$isJsShell() || h$isJsCore) print(h$logBuffer);
+    if(h$isJsShell() || h$isJsCore()) print(h$logBuffer);
 #endif
 #endif
     h$exitProcess(code);



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/44ff25edd448427225341609d948542d831503dc
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/20221020/6bef4d37/attachment-0001.html>


More information about the ghc-commits mailing list