added os.Root bindings to the JSVM

This commit is contained in:
Gani Georgiev
2025-09-06 14:51:27 +03:00
parent 6a5e449b3c
commit f2056f61bd
5 changed files with 5648 additions and 5222 deletions
+2
View File
@@ -770,6 +770,8 @@ func osBinds(vm *goja.Runtime) {
obj.Set("rename", os.Rename)
obj.Set("remove", os.Remove)
obj.Set("removeAll", os.RemoveAll)
obj.Set("openRoot", os.OpenRoot)
obj.Set("openInRoot", os.OpenInRoot)
}
func formsBinds(vm *goja.Runtime) {
+1 -1
View File
@@ -1782,5 +1782,5 @@ func TestOsBindsCount(t *testing.T) {
vm := goja.New()
osBinds(vm)
testBindsCount(vm, "$os", 18, t)
testBindsCount(vm, "$os", 20, t)
}
File diff suppressed because it is too large Load Diff