Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ #save
Method
#save
modules/files/preference/lin/preference.js:55–64 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
53
}
54
55
static #save() {
56
try {
57
File.delete(Preference.#filePath);
58
const
file =
new
File(Preference.#filePath, true);
59
file.write(JSON.stringify(Preference.#cache));
60
file.close();
61
} catch {
62
// ignore errors
63
}
64
}
65
}
Callers
2
set
Method · 0.80
delete
Method · 0.80
Calls
3
write
Method · 0.95
close
Method · 0.95
delete
Method · 0.45
Tested by
no test coverage detected