Commit Graph

1 Commits

Author SHA1 Message Date
Dario Vladović
3e79c0a29d feat: add Platform.homePath foreign method with uv_os_homedir fallback allocation
Implement the `Platform.homePath` static method in the os module, exposing the user's home directory via libuv's `uv_os_homedir`. The implementation handles buffer resizing with dynamic allocation when `UV_ENOBUFS` is returned, aborts the fiber with an error message on failure, and registers the method in the module registry. Includes a test suite verifying the returned value is a non-empty string, resolves to a real path, and corresponds to an existing directory.
2021-05-02 20:00:19 +00:00