[Git][ghc/ghc][master] JS: remove redundant h$lstat

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Mon Sep 9 18:59:19 UTC 2024



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


Commits:
5bf0e6bc by Sylvain Henry at 2024-09-09T14:58:56-04:00
JS: remove redundant h$lstat

It was introduced a second time by mistake in
27dceb42376c34b99a38e36a33b2abc346ed390f (cf #25190)

- - - - -


1 changed file:

- libraries/ghc-internal/jsbits/base.js


Changes:

=====================================
libraries/ghc-internal/jsbits/base.js
=====================================
@@ -367,23 +367,6 @@ function h$base_lstat(file, file_off, stat, stat_off, c) {
         h$unsupported(-1, c);
 }
 
-function h$lstat(file, file_off, stat, stat_off) {
-  TRACE_IO("lstat")
-#ifndef GHCJS_BROWSER
-  if(h$isNode()) {
-    try {
-      var fs = h$fs.lstatSync(h$decodeUtf8z(file, file_off));
-      h$base_fillStat(fs, stat, stat_off);
-      return 0;
-    } catch(e) {
-      h$setErrno(e);
-      return -1;
-    }
-  } else
-#endif
-    h$unsupported(-1);
-}
-
 function h$rmdir(file, file_off) {
   TRACE_IO("rmdir")
 #ifndef GHCJS_BROWSER



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5bf0e6bc3e3024c289cb637a19c9660c848e831f
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/20240909/c5d08bd2/attachment-0001.html>


More information about the ghc-commits mailing list