File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11//-------------------------------------------------------------------------------------------------------
22// Copyright (C) Microsoft. All rights reserved.
3+ // Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
34// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
45//-------------------------------------------------------------------------------------------------------
56
@@ -267,13 +268,15 @@ var tests = [
267268 Object . defineProperty ( Array . prototype , 1 , {
268269 get : function ( ) {
269270 x . length = 0 ;
270- }
271+ } ,
272+ configurable : true
271273 } ) ;
272274
273275 var f = function ( ) {
274276 assert . areEqual ( arguments . length , 2 , "Changing length of x during spreading should truncate the spread." ) ;
275277 }
276278 f ( ...x ) ;
279+ delete Array . prototype [ 1 ] ;
277280 }
278281 } ,
279282 {
Original file line number Diff line number Diff line change 11//-------------------------------------------------------------------------------------------------------
22// Copyright (C) Microsoft. All rights reserved.
3+ // Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
34// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
45//-------------------------------------------------------------------------------------------------------
56
67function f0 ( ) {
78 var printArr = [ ] ;
89 Object . prototype . m = { } ;
9- Object . defineProperty ( Array . prototype , "5" , { } ) ;
10+ Object . defineProperty ( Array . prototype , "5" , { writable : true } ) ;
1011
1112 for ( var iterator = 0 ; iterator < 10 ; iterator ++ ) {
1213 var arr0 = [ ] ;
You can’t perform that action at this time.
0 commit comments