diff --git a/src/dstr-assignment/array-rest-nested-obj-undefined-hole.case b/src/dstr-assignment/array-rest-nested-obj-undefined-hole.case index 54b078e8ca..7b6f5c0c41 100644 --- a/src/dstr-assignment/array-rest-nested-obj-undefined-hole.case +++ b/src/dstr-assignment/array-rest-nested-obj-undefined-hole.case @@ -12,7 +12,9 @@ es6id: 12.14.5.3 //- setup var x = null; -var length; +// Use the the top-level lexical scope for 'length' to provide compatibility with browsers +// where length and name are properties of WindowProxy +let length; //- elems [...{ 0: x, length }] //- vals diff --git a/src/dstr-assignment/array-rest-nested-obj-undefined-own.case b/src/dstr-assignment/array-rest-nested-obj-undefined-own.case index 2a6aa15f00..553a8e46bc 100644 --- a/src/dstr-assignment/array-rest-nested-obj-undefined-own.case +++ b/src/dstr-assignment/array-rest-nested-obj-undefined-own.case @@ -12,7 +12,9 @@ es6id: 12.14.5.3 //- setup var x = null; -var length; +// Use the the top-level lexical scope for 'length' to provide compatibility with browsers +// where length and name are properties of WindowProxy +let length; //- elems [...{ 0: x, length }] //- vals diff --git a/src/dstr-assignment/array-rest-nested-obj-undefined.case b/src/dstr-assignment/array-rest-nested-obj-undefined.case index 200ab543d6..305df52c62 100644 --- a/src/dstr-assignment/array-rest-nested-obj-undefined.case +++ b/src/dstr-assignment/array-rest-nested-obj-undefined.case @@ -12,7 +12,9 @@ es6id: 12.14.5.3 //- setup var x = null; -var length; +// Use the the top-level lexical scope for 'length' to provide compatibility with browsers +// where length and name are properties of WindowProxy +let length; //- elems [...{ 0: x, length }] //- vals