1- import { nodeStackLineParser , stripSentryFramesAndReverse } from '../src/stacktrace ' ;
1+ import { nodeStackLineParser , stripSentryFramesAndReverse } from '../src' ;
22
33describe ( 'Stacktrace' , ( ) => {
44 describe ( 'stripSentryFramesAndReverse()' , ( ) => {
@@ -157,7 +157,7 @@ describe('node', () => {
157157 const expectedOutput = {
158158 filename : '/path/to/file.js' ,
159159 module : undefined ,
160- function : '<anonymous> ' ,
160+ function : '? ' ,
161161 lineno : 10 ,
162162 colno : 5 ,
163163 in_app : true ,
@@ -257,7 +257,7 @@ describe('node', () => {
257257
258258 expect ( result ) . toEqual ( {
259259 filename : '/path/to/myFile.js' ,
260- function : 'Object.<anonymous> ' ,
260+ function : 'Object.? ' ,
261261 lineno : 10 ,
262262 colno : 20 ,
263263 in_app : true ,
@@ -269,7 +269,7 @@ describe('node', () => {
269269 const result = node ( line ) ;
270270 expect ( result ) . toEqual ( {
271271 filename : '/path/to/myFile.js' ,
272- function : '<anonymous> ' ,
272+ function : '? ' ,
273273 lineno : 10 ,
274274 colno : 20 ,
275275 in_app : true ,
@@ -281,7 +281,7 @@ describe('node', () => {
281281 const result = node ( line ) ;
282282 expect ( result ) . toEqual ( {
283283 filename : undefined ,
284- function : 'Object.<anonymous> ' ,
284+ function : 'Object.? ' ,
285285 lineno : undefined ,
286286 colno : undefined ,
287287 in_app : false ,
@@ -294,7 +294,7 @@ describe('node', () => {
294294
295295 expect ( result ) . toEqual ( {
296296 filename : '/path/to/node_modules/myModule/index.js' ,
297- function : 'Object.<anonymous> ' ,
297+ function : 'Object.? ' ,
298298 lineno : 10 ,
299299 colno : 20 ,
300300 in_app : false ,
@@ -306,7 +306,7 @@ describe('node', () => {
306306 const result = node ( line ) ;
307307 expect ( result ) . toEqual ( {
308308 filename : 'C:\\path\\to\\myFile.js' ,
309- function : 'Object.<anonymous> ' ,
309+ function : 'Object.? ' ,
310310 lineno : 10 ,
311311 colno : 20 ,
312312 in_app : true ,
0 commit comments