| // GlobalLexicalEnvironment |
| let lexicalGlobalVariable = 2; |
| function testAllScopes() { |
| var closureVariable1 = 3; |
| let closureVariable2 = 4; |
| var innerClosureVariable1 = 5; |
| let innerClosureVariable2 = 6; |
| with ({withObjectProperty: 7, __proto__: null}) { |
| let withBlockVariable = 8; |
| // Catch (the `e` object) |
| } catch (exceptionVariable) { |
| let catchBlockVariable = 10; |
| (function functionName() { |
| closureVariable1, closureVariable2, |
| innerClosureVariable1, innerClosureVariable2, |
| localVariable1, localVariable2); |