|
|
@ -80,8 +80,9 @@ Function.prototype.toString = function () { |
|
|
|
const MAX_ENVS = 10; |
|
|
|
const MAX_ENVS = 10; |
|
|
|
let drpyEnvS = globalMap0.getVar('drpyEnvS',{}); |
|
|
|
let drpyEnvS = globalMap0.getVar('drpyEnvS',{}); |
|
|
|
let nextEnvId = 0; |
|
|
|
let nextEnvId = 0; |
|
|
|
log(Object.keys(drpyEnvS).length); |
|
|
|
|
|
|
|
function createOrGetEnvironment(id, ext) { |
|
|
|
function createOrGetEnvironment(id, ext) { |
|
|
|
|
|
|
|
log(Object.keys(drpyEnvS).length); |
|
|
|
if (id === undefined) { |
|
|
|
if (id === undefined) { |
|
|
|
id = nextEnvId++; |
|
|
|
id = nextEnvId++; |
|
|
|
} |
|
|
|
} |
|
|
|