UNPKG
es-vm
Version:
latest (1.4.1)
1.4.1
1.4.0
1.3.1
1.3.0
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
A visual machine run in ES env like Node/Browser
github.com/lichaozhy/ESVM
lichaozhy/ESVM
es-vm
/
src
/
scope.js
18 lines
(15 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** *
@class
Scope */
class
Scope
{
constructor
(presets) {
this
.extend(presets); } $new(presets) {
return
Object.create(
this
).extend(presets); } extend(
object
) {
return
Object.assign(
this
,
object
); } } exports.Scope = Scope;