JS: Fix h$base_access implementation (#22576)

Closed Josh Meredith requested to merge wip/js-base_access into master

This MR fixes a couple of issues with the h$base_access implementation for JavaScript, documented in (#22576 (closed)):

  • h$fs.stat replaced with node's h$fs.access
  • fd replaced with h$decodeUtf8z(file, file_off)

The following tests are fixed by this change and have their js_broken(22576) marking removed in the testsuite:

  • RepPolyWrappedVar2
  • TcCoercibleFail
  • T16165

Merge request reports