-
-
Save iam-peekay/2369fe2fedbcfef13f681b7f10085d64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GlobalEnvironment = { | |
EnvironmentRecord: { | |
// built-in identifiers | |
Array: '<func>', | |
Object: '<func>', | |
// etc.. | |
// custom identifiers | |
x: 10 | |
}, | |
outer: null | |
}; | |
fooEnvironment = { | |
EnvironmentRecord: { | |
y: 20, | |
bar: '<func>' | |
} | |
outer: GlobalEnvironment | |
}; | |
barEnvironment = { | |
EnvironmentRecord: { | |
z: 15 | |
} | |
outer: fooEnvironment | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment