| function globalFunction() { } |
| this.globalProperty = 22; |
| throw new Error("bad assertion"); |
| function assertExpectations() { |
| assert(sentinel === "__s__"); |
| function assertProperError(e) { |
| if (e instanceof SyntaxError && e.message.indexOf("Can't create duplicate variable") !== -1) { |
| load("./multiple-files-tests/global-lexical-redeclare-variable/first.js"); |
| load("./multiple-files-tests/global-lexical-redeclare-variable/second.js"); |
| load("./multiple-files-tests/global-lexical-redeclare-variable/third.js"); |
| load("./multiple-files-tests/global-lexical-redeclare-variable/fourth.js"); |
| load("./multiple-files-tests/global-lexical-redeclare-variable/fifth.js"); |
| load("./multiple-files-tests/global-lexical-redeclare-variable/sixth.js"); |
| assert(errorCount === 6); |