diff --git a/lib/init/with.js b/lib/init/with.js index 5162b32c..04a0221b 100644 --- a/lib/init/with.js +++ b/lib/init/with.js @@ -115,7 +115,9 @@ const shimmedDefineSetter = { return getIsGettingScope() || key.startsWith(internalVarsPrefix); }, get(target, key) { - return key === 'eval' ? getEval() : runEval(nativeEval, key); + if (key === Symbol.unscopables) return undefined; + if (key === 'eval') return getEval(); + return runEval(nativeEval, key); }, set(target, key, value) { // Only used for setting internal temp vars, so no need to handle if key is `v` or `eval`