(t, s)
| 2826 | function Env(t, s) { |
| 2827 | return new(class { |
| 2828 | constructor(t, s) { |
| 2829 | (this.name = t), |
| 2830 | (this.data = null), |
| 2831 | (this.dataFile = 'box.dat'), |
| 2832 | (this.logs = []), |
| 2833 | (this.logSeparator = '\n'), |
| 2834 | (this.startTime = new Date().getTime()), |
| 2835 | Object.assign(this, s), |
| 2836 | this.log('', `\ud83d\udd14${this.name}, \u5f00\u59cb!`); |
| 2837 | } |
| 2838 | isNode() { |
| 2839 | return 'undefined' != typeof module && !!module.exports; |
| 2840 | } |