File tree Expand file tree Collapse file tree
test/form/samples/builtin-prototypes/array-expression Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,6 +128,8 @@ export const ARRAY_PROTOTYPE = new ObjectEntity(
128128 filter : METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY ,
129129 find : METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN ,
130130 findIndex : METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER ,
131+ findLast : METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN ,
132+ findLastIndex : METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER ,
131133 flat : METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY ,
132134 flatMap : METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY ,
133135 forEach : METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN ,
Original file line number Diff line number Diff line change @@ -35,10 +35,18 @@ _filterArray[0].effect();
3535const _findArray = [ { effect ( ) { } } ] ;
3636_findArray . find ( element => ( element . effect = ( ) => console . log ( 1 ) ) ) ;
3737_findArray [ 0 ] . effect ( ) ;
38+ [ 1 ] . findLast ( ( ) => console . log ( 1 ) || true ) ;
39+ const _findLastArray = [ { effect ( ) { } } ] ;
40+ _findLastArray . findLast ( element => ( element . effect = ( ) => console . log ( 1 ) ) ) ;
41+ _findLastArray [ 0 ] . effect ( ) ;
3842[ 1 ] . findIndex ( ( ) => console . log ( 1 ) || true ) ;
3943const _findIndexArray = [ { effect ( ) { } } ] ;
4044_findIndexArray . findIndex ( element => ( element . effect = ( ) => console . log ( 1 ) ) ) ;
4145_findIndexArray [ 0 ] . effect ( ) ;
46+ [ 1 ] . findLastIndex ( ( ) => console . log ( 1 ) || true ) ;
47+ const _findLastIndexArray = [ { effect ( ) { } } ] ;
48+ _findLastIndexArray . findLastIndex ( element => ( element . effect = ( ) => console . log ( 1 ) ) ) ;
49+ _findLastIndexArray [ 0 ] . effect ( ) ;
4250[ 1 ] . flatMap ( ( ) => console . log ( 1 ) || 1 ) ;
4351const _flatMapArray = [ { effect ( ) { } } ] ;
4452_flatMapArray . flatMap ( element => ( element . effect = ( ) => console . log ( 1 ) ) ) ;
Original file line number Diff line number Diff line change @@ -74,12 +74,24 @@ const _findArray = [{ effect() {} }];
7474_findArray . find ( element => ( element . effect = ( ) => console . log ( 1 ) ) ) ;
7575_findArray [ 0 ] . effect ( ) ;
7676
77+ const _findLast = [ 1 ] . findLast ( ( ) => true ) ;
78+ const _findLastEffect = [ 1 ] . findLast ( ( ) => console . log ( 1 ) || true ) ;
79+ const _findLastArray = [ { effect ( ) { } } ] ;
80+ _findLastArray . findLast ( element => ( element . effect = ( ) => console . log ( 1 ) ) ) ;
81+ _findLastArray [ 0 ] . effect ( ) ;
82+
7783const _findIndex = [ 1 ] . findIndex ( ( ) => true ) . toPrecision ( 1 ) ;
7884const _findIndexEffect = [ 1 ] . findIndex ( ( ) => console . log ( 1 ) || true ) ;
7985const _findIndexArray = [ { effect ( ) { } } ] ;
8086_findIndexArray . findIndex ( element => ( element . effect = ( ) => console . log ( 1 ) ) ) ;
8187_findIndexArray [ 0 ] . effect ( ) ;
8288
89+ const _findLastIndex = [ 1 ] . findLastIndex ( ( ) => true ) . toPrecision ( 1 ) ;
90+ const _findLastIndexEffect = [ 1 ] . findLastIndex ( ( ) => console . log ( 1 ) || true ) ;
91+ const _findLastIndexArray = [ { effect ( ) { } } ] ;
92+ _findLastIndexArray . findLastIndex ( element => ( element . effect = ( ) => console . log ( 1 ) ) ) ;
93+ _findLastIndexArray [ 0 ] . effect ( ) ;
94+
8395const _flatMap = [ 1 ] . flatMap ( ( ) => 1 ) . join ( ',' ) ;
8496const _flatMapEffect = [ 1 ] . flatMap ( ( ) => console . log ( 1 ) || 1 ) ;
8597const _flatMapArray = [ { effect ( ) { } } ] ;
You can’t perform that action at this time.
0 commit comments