Skip to content

Commit f32590b

Browse files
committed
chore: fix tests
1 parent a6cd917 commit f32590b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/vm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,7 @@ describe('VM', () => {
22292229
let escaped = false;
22302230
try {
22312231
obj.slice(20, {showHidden: true, showProxy: true, depth: 10, stylize(a) {
2232-
const handler = this.seen?.[1];
2232+
const handler = this.seen && this.seen[1];
22332233
if (handler) {
22342234
// doPreventExtensions should NOT be accessible as a method
22352235
if (typeof handler.doPreventExtensions === 'function') {
@@ -2276,7 +2276,7 @@ describe('VM', () => {
22762276
let escaped = false;
22772277
try {
22782278
obj.slice(20, {showHidden: true, showProxy: true, depth: 10, stylize(a) {
2279-
const handler = this.seen?.[1];
2279+
const handler = this.seen && this.seen[1];
22802280
if (handler) {
22812281
// getFactory should NOT be accessible as a method
22822282
if (typeof handler.getFactory === 'function') {

0 commit comments

Comments
 (0)