test_symbolicator_roundtrip.pysnap 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ---
  2. created: '2023-03-03T15:11:53.219343Z'
  3. creator: sentry
  4. source: tests/symbolicator/test_sourcemap.py
  5. ---
  6. errors: []
  7. exception:
  8. values:
  9. - raw_stacktrace:
  10. frames:
  11. - abs_path: http://example.com/test.min.js
  12. colno: 64
  13. data:
  14. orig_in_app: -1
  15. filename: test.min.js
  16. function: e
  17. in_app: false
  18. lineno: 1
  19. - abs_path: http://example.com/test.min.js
  20. colno: 136
  21. context_line: '{snip} row new Error("failed!")}function r(r){var i=null;if(r.failed){i=e}else{i=n}i(r)}function
  22. i(){var n={failed:true,value:42};r(n)}return i}();'
  23. data:
  24. orig_in_app: -1
  25. filename: test.min.js
  26. function: r
  27. in_app: false
  28. lineno: 1
  29. post_context:
  30. - //# sourceMappingURL=test.map
  31. - abs_path: http://example.com/test.min.js
  32. colno: 183
  33. context_line: '{snip} row new Error("failed!")}function r(r){var i=null;if(r.failed){i=e}else{i=n}i(r)}function
  34. i(){var n={failed:true,value:42};r(n)}return i}();'
  35. data:
  36. orig_in_app: -1
  37. filename: test.min.js
  38. function: i
  39. in_app: false
  40. lineno: 1
  41. post_context:
  42. - //# sourceMappingURL=test.map
  43. - abs_path: http://example.com/index.html
  44. colno: 7
  45. context_line: var makeAFailure=function(){function n(n){}function e(n){throw
  46. new Error("failed!")}function r(r){var i=null;if(r.failed){i=e}else{i=n}i(r)}
  47. {snip}
  48. data:
  49. orig_in_app: -1
  50. filename: index.html
  51. function: produceStack
  52. in_app: false
  53. lineno: 6
  54. post_context:
  55. - //# sourceMappingURL=test.map
  56. stacktrace:
  57. frames:
  58. - abs_path: http://example.com/index.html
  59. colno: 7
  60. data:
  61. orig_in_app: -1
  62. symbolicator_status: missing_sourcemap
  63. filename: index.html
  64. function: produceStack
  65. in_app: false
  66. lineno: 6
  67. module: index
  68. - abs_path: test.js
  69. colno: 5
  70. context_line: ' invoke(data);'
  71. data:
  72. orig_in_app: -1
  73. symbolicator_status: symbolicated
  74. filename: test.js
  75. function: test
  76. in_app: false
  77. lineno: 20
  78. post_context:
  79. - ' }'
  80. - ''
  81. - ' return test;'
  82. - '})();'
  83. - ''
  84. pre_context:
  85. - ' cb(data);'
  86. - ' }'
  87. - ''
  88. - ' function test() {'
  89. - ' var data = {failed: true, value: 42};'
  90. - abs_path: test.js
  91. colno: 5
  92. context_line: ' cb(data);'
  93. data:
  94. orig_in_app: -1
  95. symbolicator_status: symbolicated
  96. filename: test.js
  97. function: invoke
  98. in_app: false
  99. lineno: 15
  100. post_context:
  101. - ' }'
  102. - ''
  103. - ' function test() {'
  104. - ' var data = {failed: true, value: 42};'
  105. - ' invoke(data);'
  106. pre_context:
  107. - ' if (data.failed) {'
  108. - ' cb = onFailure;'
  109. - ' } else {'
  110. - ' cb = onSuccess;'
  111. - ' }'
  112. - abs_path: test.js
  113. colno: 11
  114. context_line: ' throw new Error(''failed!'');'
  115. data:
  116. orig_in_app: -1
  117. symbolicator_status: symbolicated
  118. filename: test.js
  119. function: onFailure
  120. in_app: false
  121. lineno: 5
  122. post_context:
  123. - ' }'
  124. - ''
  125. - ' function invoke(data) {'
  126. - ' var cb = null;'
  127. - ' if (data.failed) {'
  128. pre_context:
  129. - var makeAFailure = (function() {
  130. - ' function onSuccess(data) {}'
  131. - ''
  132. - ' function onFailure(data) {'
  133. type: Error