main.js
function _InternalAddEnvironment (env = new ent.Environment()) {
  if (env instanceof ent.Environment) {
    em.SetEnvironment(env)
    return true
  } else {
    log.warning("'environment' object is not of type Environment")
  }
  return false
}
function _InternalAddEnvironment (env = new ent.Environment()) {
  if (env instanceof ent.Environment) {
    em.SetEnvironment(env)
    return true
  } else {
    log.warning("'environment' object is not of type Environment")
  }
  return false
}
function _InternalAddEnvironment ( env = new ent . Environment ( ) ) { if ( env instanceof ent . Environment ) { em . SetEnvironment ( env ) return true } else { log . warning ( "'environment' object is not of type Environment" ) } return false }
Adds an Environment into the current context. The environment needs to be if instance Environment, if not
if fails silently, logs the error in the logger and returns false.
@param {object} env is the Environment object to add. This function is internal
@internal
@returns {Boolean} true if the environment is successfully created.
Adds an Environment into the current context . The environment needs to be if instance Environment if not if fails silently logs the error in the logger and returns false .