Initial commit

This commit is contained in:
Jacob
2021-12-03 01:19:31 +00:00
parent c1add166a1
commit f8efc78730
807 changed files with 201658 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
exports('runJS', (snippet) => {
if (IsDuplicityVersion() && GetInvokingResource() !== GetCurrentResourceName()) {
return [ 'Invalid caller.', false ];
}
try {
return [ new Function(snippet)(), false ];
} catch (e) {
return [ false, e.toString() ];
}
});