Prevent function module overwriting built-in sandbox properties

This commit is contained in:
Nick O'Leary
2021-02-16 13:58:59 +00:00
parent 9d34abf603
commit 785c349adc
6 changed files with 115 additions and 41 deletions

View File

@@ -94,7 +94,7 @@ describe("externalModules api", function() {
it("installs missing modules", async function() {
externalModules.init({userDir: homeDir});
externalModules.register("function", "libs");
fs.existsSync(path.join(homeDir,"externalModuels")).should.be.false();
fs.existsSync(path.join(homeDir,"externalModules")).should.be.false();
await externalModules.checkFlowDependencies([
{type: "function", libs:[{module: "foo"}]}
])