[Git][ghc/ghc][master] JS: fix typos in constants (#23650)

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Aug 2 10:02:30 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
c8bd7fa4 by Sylvain Henry at 2023-08-02T06:02:03-04:00
JS: fix typos in constants (#23650)

- - - - -


2 changed files:

- libraries/base/jsbits/base.js
- libraries/base/jsbits/errno.js


Changes:

=====================================
libraries/base/jsbits/base.js
=====================================
@@ -177,7 +177,7 @@ function h$base_lseek(fd, pos_h, pos_l, whence, c) {
         var p = CLOSEST_FLOAT_NUMBER(pos_h,pos_l);
         var o = h$base_fds[fd];
         if(!o) {
-            h$errno = CONST_BADF;
+            h$errno = CONST_EBADF;
             c(-1,-1);
         } else {
             switch(whence) {


=====================================
libraries/base/jsbits/errno.js
=====================================
@@ -59,7 +59,7 @@ function h$setErrno(e) {
 }
 
 var h$errorStrs =  { CONST_E2BIG:   "Argument list too long"
-                   , CONST_EACCESS: "Permission denied"
+                   , CONST_EACCES:  "Permission denied"
                    , CONST_EINVAL:  "Invalid argument"
                    , CONST_EBADF:   "Bad file descriptor"
                    , CONST_ENOTDIR: "Not a directory"



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c8bd7fa469fb12fafb201c3bf71f9499ce91fe14
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/20230802/6f591ce4/attachment-0001.html>


More information about the ghc-commits mailing list