Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix accessing nested properties of namespaces (#3643)
* Fix accessing nested properties of namespaces * Update changelog
- Loading branch information
1 parent
3fabc1b
commit 404a108
Showing
6 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
8 changes: 8 additions & 0 deletions
8
test/function/samples/nested-namespace-member-expression/_config.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const assert = require('assert'); | ||
|
||
module.exports = { | ||
description: 'handles accessing members of namespaces correctly', | ||
exports(exports) { | ||
assert.strictEqual(exports, false); | ||
} | ||
}; |
1 change: 1 addition & 0 deletions
1
test/function/samples/nested-namespace-member-expression/helpers.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export var global = {Object: {}}; |
2 changes: 2 additions & 0 deletions
2
test/function/samples/nested-namespace-member-expression/main.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import * as helpers from './helpers.js'; | ||
export default helpers.global.Object === Object; |