Add exportGlobalContextKeys to prevent exposing fgc keys

This commit is contained in:
Nick O'Leary
2019-03-04 16:10:39 +00:00
parent 9e74ddac48
commit 4463a8e3b2
2 changed files with 15 additions and 6 deletions

View File

@@ -392,7 +392,7 @@ function createContext(id,seed,parent) {
}
context = getContextStorage(storage);
}
if (seed) {
if (seed && settings.exportGlobalContextKeys !== false) {
if (callback) {
context.keys(scope, function(err,keys) {
callback(err,Array.from(new Set(seedKeys.concat(keys)).keys()));