rollbar 2.26.2 → 2.26.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/.github/workflows/ci.yml +32 -10
  2. package/.lgtm.yml +7 -7
  3. package/.prettierignore +18 -0
  4. package/.vscode/settings.json +39 -0
  5. package/CHANGELOG.md +121 -35
  6. package/Gruntfile.js +51 -71
  7. package/README.md +2 -4
  8. package/bower.json +1 -3
  9. package/defaults.js +17 -5
  10. package/dist/plugins/jquery.min.js +1 -1
  11. package/dist/rollbar.js +5699 -5052
  12. package/dist/rollbar.js.map +1 -1
  13. package/dist/rollbar.min.js +1 -1
  14. package/dist/rollbar.min.js.map +1 -1
  15. package/dist/rollbar.named-amd.js +5704 -5062
  16. package/dist/rollbar.named-amd.js.map +1 -1
  17. package/dist/rollbar.named-amd.min.js +1 -1
  18. package/dist/rollbar.named-amd.min.js.map +1 -1
  19. package/dist/rollbar.noconflict.umd.js +5693 -5052
  20. package/dist/rollbar.noconflict.umd.js.map +1 -1
  21. package/dist/rollbar.noconflict.umd.min.js +1 -1
  22. package/dist/rollbar.noconflict.umd.min.js.map +1 -1
  23. package/dist/rollbar.snippet.js +1 -1
  24. package/dist/rollbar.umd.js +5704 -5063
  25. package/dist/rollbar.umd.js.map +1 -1
  26. package/dist/rollbar.umd.min.js +1 -1
  27. package/dist/rollbar.umd.min.js.map +1 -1
  28. package/docs/extension-exceptions.md +35 -30
  29. package/docs/migration_v0_to_v1.md +41 -38
  30. package/index.d.ts +270 -231
  31. package/karma.conf.js +16 -34
  32. package/package.json +21 -17
  33. package/prettier.config.js +7 -0
  34. package/src/api.js +21 -10
  35. package/src/apiUtility.js +12 -8
  36. package/src/browser/core.js +103 -65
  37. package/src/browser/defaults/scrubFields.js +3 -3
  38. package/src/browser/detection.js +7 -8
  39. package/src/browser/domUtility.js +18 -8
  40. package/src/browser/globalSetup.js +12 -6
  41. package/src/browser/logger.js +1 -1
  42. package/src/browser/plugins/jquery.js +35 -35
  43. package/src/browser/predicates.js +1 -1
  44. package/src/browser/rollbar.js +1 -1
  45. package/src/browser/rollbarWrapper.js +8 -5
  46. package/src/browser/shim.js +43 -19
  47. package/src/browser/snippet_callback.js +6 -4
  48. package/src/browser/telemetry.js +573 -354
  49. package/src/browser/transforms.js +46 -27
  50. package/src/browser/transport/fetch.js +16 -14
  51. package/src/browser/transport/xhr.js +29 -13
  52. package/src/browser/transport.js +82 -25
  53. package/src/browser/url.js +16 -8
  54. package/src/browser/wrapGlobals.js +27 -8
  55. package/src/defaults.js +3 -3
  56. package/src/errorParser.js +14 -11
  57. package/src/merge.js +32 -23
  58. package/src/notifier.js +16 -13
  59. package/src/predicates.js +43 -23
  60. package/src/queue.js +71 -39
  61. package/src/rateLimiter.js +59 -18
  62. package/src/react-native/logger.js +1 -1
  63. package/src/react-native/rollbar.js +59 -55
  64. package/src/react-native/transforms.js +13 -9
  65. package/src/react-native/transport.js +44 -34
  66. package/src/rollbar.js +22 -13
  67. package/src/scrub.js +0 -1
  68. package/src/server/locals.js +69 -39
  69. package/src/server/logger.js +4 -4
  70. package/src/server/parser.js +72 -47
  71. package/src/server/rollbar.js +133 -55
  72. package/src/server/sourceMap/stackTrace.js +33 -18
  73. package/src/server/telemetry/urlHelpers.js +9 -11
  74. package/src/server/telemetry.js +68 -45
  75. package/src/server/transforms.js +37 -21
  76. package/src/server/transport.js +62 -32
  77. package/src/telemetry.js +92 -28
  78. package/src/transforms.js +33 -21
  79. package/src/truncation.js +8 -5
  80. package/src/utility/headers.js +43 -43
  81. package/src/utility/replace.js +9 -0
  82. package/src/utility/traverse.js +1 -1
  83. package/src/utility.js +89 -52
  84. package/test/api.test.js +31 -29
  85. package/test/apiUtility.test.js +43 -44
  86. package/test/browser.core.test.js +141 -131
  87. package/test/browser.domUtility.test.js +52 -35
  88. package/test/browser.predicates.test.js +13 -13
  89. package/test/browser.rollbar.test.js +597 -503
  90. package/test/browser.telemetry.test.js +76 -0
  91. package/test/browser.transforms.test.js +146 -128
  92. package/test/browser.transport.test.js +54 -46
  93. package/test/browser.url.test.js +12 -11
  94. package/test/fixtures/locals.fixtures.js +245 -126
  95. package/test/notifier.test.js +90 -78
  96. package/test/predicates.test.js +260 -214
  97. package/test/queue.test.js +230 -214
  98. package/test/rateLimiter.test.js +50 -42
  99. package/test/react-native.rollbar.test.js +149 -115
  100. package/test/react-native.transforms.test.js +21 -23
  101. package/test/react-native.transport.test.js +23 -11
  102. package/test/server.lambda.test.js +70 -53
  103. package/test/server.locals.test.js +437 -210
  104. package/test/server.parser.test.js +32 -26
  105. package/test/server.predicates.test.js +45 -43
  106. package/test/server.rollbar.test.js +311 -259
  107. package/test/server.telemetry.test.js +208 -83
  108. package/test/server.transforms.test.js +455 -361
  109. package/test/server.transport.test.js +144 -76
  110. package/test/telemetry.test.js +46 -37
  111. package/test/transforms.test.js +68 -66
  112. package/test/truncation.test.js +55 -53
  113. package/test/utility.test.js +266 -222
  114. package/webpack.config.js +46 -43
  115. package/.gitmodules +0 -3
  116. package/browserstack.browsers.js +0 -153
  117. package/browserstack.browsers.json +0 -4384
@@ -5,25 +5,35 @@ var localsFixtures = {
5
5
  // simple map includes only the local scope and a single stack frame.
6
6
  simple: {
7
7
  callFrames: [
8
- { callFrameId: '{"ordinal":0,"injectedScriptId":1}',
8
+ {
9
+ callFrameId: '{"ordinal":0,"injectedScriptId":1}',
9
10
  functionName: '',
10
- functionLocation: { scriptId: '121', lineNumber: 24, columnNumber: 12 },
11
+ functionLocation: {
12
+ scriptId: '121',
13
+ lineNumber: 24,
14
+ columnNumber: 12,
15
+ },
11
16
  location: { scriptId: '121', lineNumber: 28, columnNumber: 16 },
12
17
  url: 'file:///example/test/locals1.js',
13
18
  scopeChain: [
14
- { type: 'local',
19
+ {
20
+ type: 'local',
15
21
  object: {
16
22
  type: 'object',
17
23
  className: 'Object',
18
24
  description: 'Object',
19
- objectId: 'objectId1' // Used to query locals from getProperties
25
+ objectId: 'objectId1', // Used to query locals from getProperties
20
26
  },
21
27
  name: 'nodeThrowNested',
22
- startLocation: { scriptId: '121', lineNumber: 40, columnNumber: 30 },
23
- endLocation: { scriptId: '121', lineNumber: 57, columnNumber: 1 }
24
- }
25
- ]
26
- }
28
+ startLocation: {
29
+ scriptId: '121',
30
+ lineNumber: 40,
31
+ columnNumber: 30,
32
+ },
33
+ endLocation: { scriptId: '121', lineNumber: 57, columnNumber: 1 },
34
+ },
35
+ ],
36
+ },
27
37
  ],
28
38
  reason: 'exception',
29
39
  data: {
@@ -32,125 +42,185 @@ var localsFixtures = {
32
42
  className: 'Error',
33
43
  description: 'Error: node error',
34
44
  objectId: '{"injectedScriptId":1,"id":1}',
35
- uncaught: true
45
+ uncaught: true,
36
46
  },
37
- hitBreakpoints: []
47
+ hitBreakpoints: [],
38
48
  },
39
49
  // complex map includes multiple scopes and multiple stack frames.
40
50
  complex: {
41
51
  callFrames: [
42
- { callFrameId: '{"ordinal":0,"injectedScriptId":1}',
52
+ {
53
+ callFrameId: '{"ordinal":0,"injectedScriptId":1}',
43
54
  functionName: '',
44
- functionLocation: { scriptId: '121', lineNumber: 24, columnNumber: 12 },
55
+ functionLocation: {
56
+ scriptId: '121',
57
+ lineNumber: 24,
58
+ columnNumber: 12,
59
+ },
45
60
  location: { scriptId: '121', lineNumber: 28, columnNumber: 16 },
46
61
  url: '/example/test/locals2.js',
47
62
  scopeChain: [
48
- { type: 'global',
63
+ {
64
+ type: 'global',
49
65
  object: {
50
66
  type: 'object',
51
67
  className: 'global',
52
68
  description: 'global',
53
- objectId: '{"injectedScriptId":1,"id":41}'
54
- }
69
+ objectId: '{"injectedScriptId":1,"id":41}',
70
+ },
55
71
  },
56
- { type: 'local',
72
+ {
73
+ type: 'local',
57
74
  object: {
58
75
  type: 'object',
59
76
  className: 'Object',
60
77
  description: 'Object',
61
- objectId: 'objectId1' // Used to query locals from getProperties
78
+ objectId: 'objectId1', // Used to query locals from getProperties
62
79
  },
63
80
  name: 'nodeThrowNested',
64
- startLocation: { scriptId: '121', lineNumber: 40, columnNumber: 30 },
65
- endLocation: { scriptId: '121', lineNumber: 57, columnNumber: 1 }
81
+ startLocation: {
82
+ scriptId: '121',
83
+ lineNumber: 40,
84
+ columnNumber: 30,
85
+ },
86
+ endLocation: { scriptId: '121', lineNumber: 57, columnNumber: 1 },
66
87
  },
67
- { type: 'closure',
88
+ {
89
+ type: 'closure',
68
90
  object: {
69
91
  type: 'object',
70
92
  className: 'Object',
71
93
  description: 'Object',
72
- objectId: '{"injectedScriptId":1,"id":44}'
94
+ objectId: '{"injectedScriptId":1,"id":44}',
95
+ },
96
+ startLocation: {
97
+ scriptId: '121',
98
+ lineNumber: 0,
99
+ columnNumber: 0,
100
+ },
101
+ endLocation: {
102
+ scriptId: '121',
103
+ lineNumber: 219,
104
+ columnNumber: 34,
73
105
  },
74
- startLocation: { scriptId: '121', lineNumber: 0, columnNumber: 0 },
75
- endLocation: { scriptId: '121', lineNumber: 219, columnNumber: 34 }
76
106
  },
77
- ]
107
+ ],
78
108
  },
79
- { callFrameId: '{"ordinal":0,"injectedScriptId":1}',
109
+ {
110
+ callFrameId: '{"ordinal":0,"injectedScriptId":1}',
80
111
  functionName: '',
81
112
  // functionLocation should not be used for matching. Set to a non-matching value.
82
- functionLocation: { scriptId: '121', lineNumber: 136, columnNumber: 1 },
113
+ functionLocation: {
114
+ scriptId: '121',
115
+ lineNumber: 136,
116
+ columnNumber: 1,
117
+ },
83
118
  location: { scriptId: '121', lineNumber: 139, columnNumber: 14 },
84
119
  url: 'file:///example/test/locals3.js', // The `file://` prefix may be present.
85
120
  scopeChain: [
86
- { type: 'global',
121
+ {
122
+ type: 'global',
87
123
  object: {
88
124
  type: 'object',
89
125
  className: 'global',
90
126
  description: 'global',
91
- objectId: '{"injectedScriptId":1,"id":41}'
92
- }
127
+ objectId: '{"injectedScriptId":1,"id":41}',
128
+ },
93
129
  },
94
- { type: 'local',
130
+ {
131
+ type: 'local',
95
132
  object: {
96
133
  type: 'object',
97
134
  className: 'Object',
98
135
  description: 'Object',
99
- objectId: 'objectId2' // Used to query locals from getProperties
136
+ objectId: 'objectId2', // Used to query locals from getProperties
100
137
  },
101
138
  name: 'nodeThrowNested',
102
- startLocation: { scriptId: '121', lineNumber: 40, columnNumber: 30 },
103
- endLocation: { scriptId: '121', lineNumber: 57, columnNumber: 1 }
139
+ startLocation: {
140
+ scriptId: '121',
141
+ lineNumber: 40,
142
+ columnNumber: 30,
143
+ },
144
+ endLocation: { scriptId: '121', lineNumber: 57, columnNumber: 1 },
104
145
  },
105
- { type: 'closure',
146
+ {
147
+ type: 'closure',
106
148
  object: {
107
149
  type: 'object',
108
150
  className: 'Object',
109
151
  description: 'Object',
110
- objectId: '{"injectedScriptId":1,"id":44}'
152
+ objectId: '{"injectedScriptId":1,"id":44}',
153
+ },
154
+ startLocation: {
155
+ scriptId: '121',
156
+ lineNumber: 0,
157
+ columnNumber: 0,
158
+ },
159
+ endLocation: {
160
+ scriptId: '121',
161
+ lineNumber: 219,
162
+ columnNumber: 34,
111
163
  },
112
- startLocation: { scriptId: '121', lineNumber: 0, columnNumber: 0 },
113
- endLocation: { scriptId: '121', lineNumber: 219, columnNumber: 34 }
114
164
  },
115
- ]
165
+ ],
116
166
  },
117
- { callFrameId: '{"ordinal":0,"injectedScriptId":1}',
167
+ {
168
+ callFrameId: '{"ordinal":0,"injectedScriptId":1}',
118
169
  functionName: '',
119
- functionLocation: { scriptId: '121', lineNumber: 128, columnNumber: 1 },
170
+ functionLocation: {
171
+ scriptId: '121',
172
+ lineNumber: 128,
173
+ columnNumber: 1,
174
+ },
120
175
  location: { scriptId: '121', lineNumber: 132, columnNumber: 34 },
121
176
  url: 'file:///example/test/locals4.js',
122
177
  scopeChain: [
123
- { type: 'global',
178
+ {
179
+ type: 'global',
124
180
  object: {
125
181
  type: 'object',
126
182
  className: 'global',
127
183
  description: 'global',
128
- objectId: '{"injectedScriptId":1,"id":41}'
129
- }
184
+ objectId: '{"injectedScriptId":1,"id":41}',
185
+ },
130
186
  },
131
- { type: 'local',
187
+ {
188
+ type: 'local',
132
189
  object: {
133
190
  type: 'object',
134
191
  className: 'Object',
135
192
  description: 'Object',
136
- objectId: 'objectId3' // Used to query locals from getProperties
193
+ objectId: 'objectId3', // Used to query locals from getProperties
137
194
  },
138
195
  name: 'nodeThrowNested',
139
- startLocation: { scriptId: '121', lineNumber: 40, columnNumber: 30 },
140
- endLocation: { scriptId: '121', lineNumber: 57, columnNumber: 1 }
196
+ startLocation: {
197
+ scriptId: '121',
198
+ lineNumber: 40,
199
+ columnNumber: 30,
200
+ },
201
+ endLocation: { scriptId: '121', lineNumber: 57, columnNumber: 1 },
141
202
  },
142
- { type: 'closure',
203
+ {
204
+ type: 'closure',
143
205
  object: {
144
206
  type: 'object',
145
207
  className: 'Object',
146
208
  description: 'Object',
147
- objectId: '{"injectedScriptId":1,"id":44}'
209
+ objectId: '{"injectedScriptId":1,"id":44}',
210
+ },
211
+ startLocation: {
212
+ scriptId: '121',
213
+ lineNumber: 0,
214
+ columnNumber: 0,
215
+ },
216
+ endLocation: {
217
+ scriptId: '121',
218
+ lineNumber: 219,
219
+ columnNumber: 34,
148
220
  },
149
- startLocation: { scriptId: '121', lineNumber: 0, columnNumber: 0 },
150
- endLocation: { scriptId: '121', lineNumber: 219, columnNumber: 34 }
151
221
  },
152
- ]
153
- }
222
+ ],
223
+ },
154
224
  ],
155
225
  reason: 'exception',
156
226
  data: {
@@ -159,91 +229,136 @@ var localsFixtures = {
159
229
  className: 'Error',
160
230
  description: 'Error: node error',
161
231
  objectId: '{"injectedScriptId":1,"id":1}',
162
- uncaught: true
232
+ uncaught: true,
163
233
  },
164
- hitBreakpoints: []
234
+ hitBreakpoints: [],
165
235
  },
166
236
  noLocalScope: {
167
237
  callFrames: [
168
- { callFrameId: '{"ordinal":0,"injectedScriptId":1}',
238
+ {
239
+ callFrameId: '{"ordinal":0,"injectedScriptId":1}',
169
240
  functionName: '',
170
- functionLocation: { scriptId: '121', lineNumber: 24, columnNumber: 12 },
241
+ functionLocation: {
242
+ scriptId: '121',
243
+ lineNumber: 24,
244
+ columnNumber: 12,
245
+ },
171
246
  location: { scriptId: '121', lineNumber: 28, columnNumber: 16 },
172
247
  url: '/example/test/locals2.js',
173
248
  scopeChain: [
174
- { type: 'global',
249
+ {
250
+ type: 'global',
175
251
  object: {
176
252
  type: 'object',
177
253
  className: 'global',
178
254
  description: 'global',
179
- objectId: '{"injectedScriptId":1,"id":41}'
180
- }
255
+ objectId: '{"injectedScriptId":1,"id":41}',
256
+ },
181
257
  },
182
- { type: 'closure',
258
+ {
259
+ type: 'closure',
183
260
  object: {
184
261
  type: 'object',
185
262
  className: 'Object',
186
263
  description: 'Object',
187
- objectId: '{"injectedScriptId":1,"id":44}'
264
+ objectId: '{"injectedScriptId":1,"id":44}',
265
+ },
266
+ startLocation: {
267
+ scriptId: '121',
268
+ lineNumber: 0,
269
+ columnNumber: 0,
270
+ },
271
+ endLocation: {
272
+ scriptId: '121',
273
+ lineNumber: 219,
274
+ columnNumber: 34,
188
275
  },
189
- startLocation: { scriptId: '121', lineNumber: 0, columnNumber: 0 },
190
- endLocation: { scriptId: '121', lineNumber: 219, columnNumber: 34 }
191
276
  },
192
- ]
277
+ ],
193
278
  },
194
- { callFrameId: '{"ordinal":0,"injectedScriptId":1}',
279
+ {
280
+ callFrameId: '{"ordinal":0,"injectedScriptId":1}',
195
281
  functionName: '',
196
282
  // functionLocation should not be used for matching. Set to a non-matching value.
197
- functionLocation: { scriptId: '121', lineNumber: 136, columnNumber: 1 },
283
+ functionLocation: {
284
+ scriptId: '121',
285
+ lineNumber: 136,
286
+ columnNumber: 1,
287
+ },
198
288
  location: { scriptId: '121', lineNumber: 139, columnNumber: 14 },
199
289
  url: 'file:///example/test/locals3.js', // The `file://` prefix may be present.
200
290
  scopeChain: [
201
- { type: 'global',
291
+ {
292
+ type: 'global',
202
293
  object: {
203
294
  type: 'object',
204
295
  className: 'global',
205
296
  description: 'global',
206
- objectId: '{"injectedScriptId":1,"id":41}'
207
- }
297
+ objectId: '{"injectedScriptId":1,"id":41}',
298
+ },
208
299
  },
209
- { type: 'closure',
300
+ {
301
+ type: 'closure',
210
302
  object: {
211
303
  type: 'object',
212
304
  className: 'Object',
213
305
  description: 'Object',
214
- objectId: '{"injectedScriptId":1,"id":44}'
306
+ objectId: '{"injectedScriptId":1,"id":44}',
307
+ },
308
+ startLocation: {
309
+ scriptId: '121',
310
+ lineNumber: 0,
311
+ columnNumber: 0,
312
+ },
313
+ endLocation: {
314
+ scriptId: '121',
315
+ lineNumber: 219,
316
+ columnNumber: 34,
215
317
  },
216
- startLocation: { scriptId: '121', lineNumber: 0, columnNumber: 0 },
217
- endLocation: { scriptId: '121', lineNumber: 219, columnNumber: 34 }
218
318
  },
219
- ]
319
+ ],
220
320
  },
221
- { callFrameId: '{"ordinal":0,"injectedScriptId":1}',
321
+ {
322
+ callFrameId: '{"ordinal":0,"injectedScriptId":1}',
222
323
  functionName: '',
223
- functionLocation: { scriptId: '121', lineNumber: 128, columnNumber: 1 },
324
+ functionLocation: {
325
+ scriptId: '121',
326
+ lineNumber: 128,
327
+ columnNumber: 1,
328
+ },
224
329
  location: { scriptId: '121', lineNumber: 132, columnNumber: 34 },
225
330
  url: 'file:///example/test/locals4.js',
226
331
  scopeChain: [
227
- { type: 'global',
332
+ {
333
+ type: 'global',
228
334
  object: {
229
335
  type: 'object',
230
336
  className: 'global',
231
337
  description: 'global',
232
- objectId: '{"injectedScriptId":1,"id":41}'
233
- }
338
+ objectId: '{"injectedScriptId":1,"id":41}',
339
+ },
234
340
  },
235
- { type: 'closure',
341
+ {
342
+ type: 'closure',
236
343
  object: {
237
344
  type: 'object',
238
345
  className: 'Object',
239
346
  description: 'Object',
240
- objectId: '{"injectedScriptId":1,"id":44}'
347
+ objectId: '{"injectedScriptId":1,"id":44}',
348
+ },
349
+ startLocation: {
350
+ scriptId: '121',
351
+ lineNumber: 0,
352
+ columnNumber: 0,
353
+ },
354
+ endLocation: {
355
+ scriptId: '121',
356
+ lineNumber: 219,
357
+ columnNumber: 34,
241
358
  },
242
- startLocation: { scriptId: '121', lineNumber: 0, columnNumber: 0 },
243
- endLocation: { scriptId: '121', lineNumber: 219, columnNumber: 34 }
244
359
  },
245
- ]
246
- }
360
+ ],
361
+ },
247
362
  ],
248
363
  reason: 'exception',
249
364
  data: {
@@ -252,38 +367,41 @@ var localsFixtures = {
252
367
  className: 'Error',
253
368
  description: 'Error: node error',
254
369
  objectId: '{"injectedScriptId":1,"id":1}',
255
- uncaught: true
370
+ uncaught: true,
256
371
  },
257
- hitBreakpoints: []
258
- }
372
+ hitBreakpoints: [],
373
+ },
259
374
  },
260
375
 
261
376
  stacks: {
262
377
  simple: [
263
- { method: 'Timeout._onTimeout',
378
+ {
379
+ method: 'Timeout._onTimeout',
264
380
  filename: '/example/test/locals1.js',
265
381
  lineno: 29,
266
382
  colno: 16,
267
383
  runtimePosition: {
268
384
  source: '/example/test/locals1.js',
269
385
  line: 29,
270
- column: 16
271
- }
272
- }
386
+ column: 16,
387
+ },
388
+ },
273
389
  ],
274
390
  // The stack order presented by Rollbar.js is reversed.
275
391
  complex: [
276
- { method: 'Method1',
392
+ {
393
+ method: 'Method1',
277
394
  filename: '/example/test/locals4.js',
278
395
  lineno: 133,
279
396
  colno: 34,
280
397
  runtimePosition: {
281
398
  source: '/example/test/locals4.js',
282
399
  line: 133,
283
- column: 34
284
- }
400
+ column: 34,
401
+ },
285
402
  },
286
- { method: 'Method2',
403
+ {
404
+ method: 'Method2',
287
405
  filename: '/example/test/locals3.ts',
288
406
  lineno: 120,
289
407
  colno: 40,
@@ -291,20 +409,21 @@ var localsFixtures = {
291
409
  runtimePosition: {
292
410
  source: '/example/test/locals3.js',
293
411
  line: 140,
294
- column: 14
295
- }
412
+ column: 14,
413
+ },
296
414
  },
297
- { method: 'Method3',
415
+ {
416
+ method: 'Method3',
298
417
  filename: '/example/test/locals2.js',
299
418
  lineno: 13,
300
419
  colno: 26,
301
420
  runtimePosition: {
302
421
  source: '/example/test/locals2.js',
303
422
  line: 13,
304
- column: 26
305
- }
306
- }
307
- ]
423
+ column: 26,
424
+ },
425
+ },
426
+ ],
308
427
  },
309
428
 
310
429
  locals: {
@@ -314,12 +433,12 @@ var localsFixtures = {
314
433
  type: 'object',
315
434
  className: 'FooClass',
316
435
  description: 'FooClass',
317
- objectId: 'nestedProps1'
436
+ objectId: 'nestedProps1',
318
437
  },
319
438
  writable: true,
320
439
  configurable: true,
321
440
  enumerable: true,
322
- isOwn: true
441
+ isOwn: true,
323
442
  },
324
443
  object2: {
325
444
  name: 'bar',
@@ -327,45 +446,45 @@ var localsFixtures = {
327
446
  type: 'object',
328
447
  className: 'BarClass',
329
448
  description: 'BarClass',
330
- objectId: 'nestedProps2'
449
+ objectId: 'nestedProps2',
331
450
  },
332
451
  writable: true,
333
452
  configurable: true,
334
453
  enumerable: true,
335
- isOwn: true
454
+ isOwn: true,
336
455
  },
337
456
  boolean1: {
338
457
  name: 'old',
339
458
  value: {
340
459
  type: 'boolean',
341
- value: false
460
+ value: false,
342
461
  },
343
462
  writable: true,
344
463
  configurable: true,
345
464
  enumerable: true,
346
- isOwn: true
465
+ isOwn: true,
347
466
  },
348
467
  boolean2: {
349
468
  name: 'new',
350
469
  value: {
351
470
  type: 'boolean',
352
- value: true
471
+ value: true,
353
472
  },
354
473
  writable: true,
355
474
  configurable: true,
356
475
  enumerable: true,
357
- isOwn: true
476
+ isOwn: true,
358
477
  },
359
478
  string1: {
360
479
  name: 'response',
361
480
  value: {
362
481
  type: 'string',
363
- value: 'success'
482
+ value: 'success',
364
483
  },
365
484
  writable: true,
366
485
  configurable: true,
367
486
  enumerable: true,
368
- isOwn: true
487
+ isOwn: true,
369
488
  },
370
489
  array1: {
371
490
  name: 'args',
@@ -374,12 +493,12 @@ var localsFixtures = {
374
493
  subtype: 'array',
375
494
  className: 'Array',
376
495
  description: 'Array(1)',
377
- objectId: '{"injectedScriptId":1,"id":54}'
496
+ objectId: '{"injectedScriptId":1,"id":54}',
378
497
  },
379
498
  writable: true,
380
499
  configurable: true,
381
500
  enumerable: true,
382
- isOwn: true
501
+ isOwn: true,
383
502
  },
384
503
  function1: {
385
504
  name: 'func',
@@ -387,38 +506,38 @@ var localsFixtures = {
387
506
  type: 'function',
388
507
  className: 'Function',
389
508
  description: 'Array(1)',
390
- objectId: '{"injectedScriptId":1,"id":64}'
509
+ objectId: '{"injectedScriptId":1,"id":64}',
391
510
  },
392
511
  writable: true,
393
512
  configurable: true,
394
513
  enumerable: true,
395
- isOwn: true
514
+ isOwn: true,
396
515
  },
397
516
  function2: {
398
517
  name: 'asyncFunc',
399
518
  value: {
400
519
  type: 'function',
401
520
  className: 'AsyncFunction',
402
- objectId: '{"injectedScriptId":1,"id":32}'
521
+ objectId: '{"injectedScriptId":1,"id":32}',
403
522
  },
404
523
  writable: true,
405
524
  configurable: true,
406
525
  enumerable: true,
407
- isOwn: true
526
+ isOwn: true,
408
527
  },
409
528
  null1: {
410
529
  name: 'parent',
411
530
  value: {
412
531
  subtype: 'null',
413
532
  type: 'object',
414
- value: null
533
+ value: null,
415
534
  },
416
535
  configurable: true,
417
536
  writable: true,
418
537
  enumerable: true,
419
- isOwn: true
420
- }
421
- }
422
- }
538
+ isOwn: true,
539
+ },
540
+ },
541
+ };
423
542
 
424
543
  module.exports = localsFixtures;