Module: env/util

Members

(static) log

Log utility

Source:
See:
  • env/log

Methods

(static) duplicateEnv(initialEnv) → {Environment}

Create a "sloppy" copy of an initial Environment object. The focus of this method is on performance rather than correctly deep copying every property or recreating a correct instance. Use carefully and don't rely on hasOwnProperty of the copied environment.

Every property are shared except the runLoop which is regenerated.

Parameters:
Name Type Description
initialEnv Environment

an Environment instance

Source:
Returns:

sloppy copy of the initial Environment

Type
Environment