@@ -1279,16 +1279,16 @@ export function createBoundServerReference<A: Iterable<any>, T>(
1279
1279
const location = metaData . location ;
1280
1280
if ( location ) {
1281
1281
const functionName = metaData . name || '' ;
1282
- const [ , filename, , , enclosingLine , enclosingCol ] = location ;
1282
+ const [ , filename, line , col ] = location ;
1283
1283
const env = metaData . env || 'Server' ;
1284
1284
const sourceMap =
1285
1285
findSourceMapURL == null ? null : findSourceMapURL ( filename , env ) ;
1286
1286
action = createFakeServerFunction (
1287
1287
functionName ,
1288
1288
filename ,
1289
1289
sourceMap ,
1290
- enclosingLine ,
1291
- enclosingCol ,
1290
+ line ,
1291
+ col ,
1292
1292
env ,
1293
1293
action ,
1294
1294
) ;
@@ -1375,7 +1375,7 @@ export function createServerReference<A: Iterable<any>, T>(
1375
1375
// multiple passes of compilation as long as we can find the final source map.
1376
1376
const location = parseStackLocation ( new Error ( 'react-stack-top-frame' ) ) ;
1377
1377
if ( location !== null ) {
1378
- const [ , filename , , , line , col ] = location ;
1378
+ const [ , filename , line , col ] = location ;
1379
1379
// While the environment that the Server Reference points to can be
1380
1380
// in any environment, what matters here is where the compiled source
1381
1381
// is from and that's in the currently executing environment. We hard
0 commit comments