Skip to content

Instantly share code, notes, and snippets.

@iam-peekay
Last active April 29, 2016 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iam-peekay/2369fe2fedbcfef13f681b7f10085d64 to your computer and use it in GitHub Desktop.
Save iam-peekay/2369fe2fedbcfef13f681b7f10085d64 to your computer and use it in GitHub Desktop.
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