@@ -32,31 +32,31 @@ export default class AsbindInstance {
32
32
constructor ( ) {
33
33
this . unboundExports = { } ;
34
34
this . exports = { } ;
35
- this . importObject = { } ;
35
+ this . _importObject = { } ;
36
36
}
37
37
38
- async instantiate ( source , importObject ) {
38
+ async _instantiate ( source , importObject ) {
39
39
// Set our import object, as we will need it to store type caching
40
- this . importObject = importObject ;
40
+ this . _importObject = importObject ;
41
41
42
42
// Need to traverse the importObject and bind all import functions
43
43
traverseObjectAndRunCallbackForFunctions (
44
- this . importObject ,
44
+ this . _importObject ,
45
45
[ ] ,
46
46
( baseObject , keys , baseObjectKey ) => {
47
47
// Wrap the original key, but then expose a new key for the unbound import
48
48
let importFunction = baseObject [ baseObjectKey ] ;
49
49
baseObject [ `__asbind_unbound_${ baseObjectKey } ` ] = importFunction ;
50
50
baseObject [ baseObjectKey ] = bindImportFunction (
51
51
this ,
52
- this . importObject ,
52
+ this . _importObject ,
53
53
[ ...keys , baseObjectKey ]
54
54
) ;
55
55
}
56
56
) ;
57
57
58
58
// Instantiate the module through the loader
59
- this . unboundExports = await asbindInstantiate ( source , this . importObject ) ;
59
+ this . unboundExports = await asbindInstantiate ( source , this . _importObject ) ;
60
60
61
61
// Wrap appropriate the appropriate export functions
62
62
this . exports = { } ;
@@ -91,7 +91,7 @@ export default class AsbindInstance {
91
91
enableImportFunctionTypeCaching ( ) {
92
92
// Need to traverse the importObject and bind all import functions
93
93
traverseObjectAndRunCallbackForFunctions (
94
- this . importObject ,
94
+ this . _importObject ,
95
95
[ ] ,
96
96
( baseObject , keys , baseObjectKey ) => {
97
97
// Wrap the original key, but then expose a new key for the unbound import
@@ -104,7 +104,7 @@ export default class AsbindInstance {
104
104
disableImportFunctionTypeCaching ( ) {
105
105
// Need to traverse the importObject and bind all import functions
106
106
traverseObjectAndRunCallbackForFunctions (
107
- this . importObject ,
107
+ this . _importObject ,
108
108
[ ] ,
109
109
( baseObject , keys , baseObjectKey ) => {
110
110
// Wrap the original key, but then expose a new key for the unbound import
0 commit comments