@@ -17,7 +17,7 @@ globalObj.$nxCompileCreateBackup = createBackup
17
17
const proxies = new WeakMap ( )
18
18
const expressionCache = new Map ( )
19
19
const codeCache = new Map ( )
20
- const exposedGlobals = new Set ( )
20
+ const globals = new Set ( )
21
21
const handlers = { has}
22
22
23
23
function compileExpression ( src ) {
@@ -60,14 +60,14 @@ function expose (globalName) {
60
60
if ( typeof globalName !== 'string' ) {
61
61
throw new TypeError ( 'first argument must be a string' )
62
62
}
63
- exposedGlobals . add ( globalName )
63
+ globals . add ( globalName )
64
64
}
65
65
66
66
function hide ( globalName ) {
67
67
if ( typeof globalName !== 'string' ) {
68
68
throw new TypeError ( 'first argument must be a string' )
69
69
}
70
- exposedGlobals . delete ( globalName )
70
+ globals . delete ( globalName )
71
71
}
72
72
73
73
function toSandbox ( obj ) {
@@ -93,5 +93,5 @@ function createBackup (context, tempVars) {
93
93
}
94
94
95
95
function has ( target , key ) {
96
- return exposedGlobals . has ( key ) ? Reflect . has ( target , key ) : true
96
+ return globals . has ( key ) ? Reflect . has ( target , key ) : true
97
97
}
0 commit comments