File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ function caml_ephe_get_data(x) {
185185 x [ caml_ephe_data_offset ] = caml_ephe_none ;
186186 return 0 ;
187187 }
188- data = data . get ( d ) ;
188+ data = data . get ( k ) ;
189189 if ( data === undefined ) {
190190 x [ caml_ephe_data_offset ] = caml_ephe_none ;
191191 return 0 ;
@@ -207,7 +207,7 @@ function caml_ephe_get_data_copy(x) {
207207//Requires: caml_ephe_data_offset, caml_ephe_key_offset
208208//Requires: caml_ephe_none
209209function caml_ephe_set_data ( x , data ) {
210- for ( var i = caml_ephe_key_offset ; i < x . length ; i ++ ) {
210+ for ( var i = x . length - 1 ; i >= caml_ephe_key_offset ; i -- ) {
211211 var k = x [ i ] ;
212212 if ( k === caml_ephe_none ) continue ;
213213 if ( ! ( globalThis . WeakRef && k instanceof globalThis . WeakRef ) ) continue ;
You can’t perform that action at this time.
0 commit comments