|
61 | 61 | v2: [ 'JS_SPECIAL_VAL', 'undefined' ] }, |
62 | 62 | ordered_globals: [ 'Vector', 'v1', 'v2' ], |
63 | 63 | line: 2, |
64 | | - col: 9, |
| 64 | + col: 2, |
65 | 65 | event: 'call', |
66 | 66 | heap: |
67 | 67 | { '1': |
|
77 | 77 | 'function (other) {\n return new Vector(this.x + other.x, this.y + other.y);\n}', |
78 | 78 | null, |
79 | 79 | null ], |
80 | | - '4': |
81 | | - [ 'INSTANCE', |
82 | | - '', |
83 | | - [ 'x', [ 'JS_SPECIAL_VAL', 'undefined' ] ], |
84 | | - [ 'y', [ 'JS_SPECIAL_VAL', 'undefined' ] ], |
85 | | - [ '__proto__', [ 'REF', 2 ] ] ] } }, |
| 80 | + '4': [ 'INSTANCE', '', [ '__proto__', [ 'REF', 2 ] ] ] } }, |
86 | 81 | { stdout: '', |
87 | 82 | func_name: 'Vector', |
88 | 83 | stack_to_render: |
|
101 | 96 | v2: [ 'JS_SPECIAL_VAL', 'undefined' ] }, |
102 | 97 | ordered_globals: [ 'Vector', 'v1', 'v2' ], |
103 | 98 | line: 3, |
104 | | - col: 9, |
| 99 | + col: 2, |
105 | 100 | event: 'step_line', |
106 | 101 | heap: |
107 | 102 | { '1': |
|
117 | 112 | 'function (other) {\n return new Vector(this.x + other.x, this.y + other.y);\n}', |
118 | 113 | null, |
119 | 114 | null ], |
120 | | - '4': |
121 | | - [ 'INSTANCE', |
122 | | - '', |
123 | | - [ 'x', 1 ], |
124 | | - [ 'y', [ 'JS_SPECIAL_VAL', 'undefined' ] ], |
125 | | - [ '__proto__', [ 'REF', 2 ] ] ] } }, |
| 115 | + '4': [ 'INSTANCE', '', [ 'x', 1 ], [ '__proto__', [ 'REF', 2 ] ] ] } }, |
126 | 116 | { stdout: '', |
127 | 117 | func_name: 'Vector', |
128 | 118 | stack_to_render: |
|
212 | 202 | v2: [ 'JS_SPECIAL_VAL', 'undefined' ] }, |
213 | 203 | ordered_globals: [ 'Vector', 'v1', 'v2' ], |
214 | 204 | line: 2, |
215 | | - col: 9, |
| 205 | + col: 2, |
216 | 206 | event: 'call', |
217 | 207 | heap: |
218 | 208 | { '1': |
|
234 | 224 | [ 'x', 1 ], |
235 | 225 | [ 'y', 2 ], |
236 | 226 | [ '__proto__', [ 'REF', 2 ] ] ] } }, |
237 | | - { stdout: '', |
| 227 | + { exception_msg: 'TypeError: Cannot set property \'x\' of undefined', |
| 228 | + stdout: '', |
238 | 229 | func_name: 'Vector', |
239 | 230 | stack_to_render: |
240 | 231 | [ { func_name: 'Vector', |
|
249 | 240 | globals: |
250 | 241 | { Vector: [ 'REF', 1 ], |
251 | 242 | v1: [ 'REF', 4 ], |
252 | | - v2: [ 'JS_SPECIAL_VAL', 'undefined' ], |
253 | | - x: 20 }, |
254 | | - ordered_globals: [ 'Vector', 'v1', 'v2', 'x' ], |
255 | | - line: 3, |
| 243 | + v2: [ 'JS_SPECIAL_VAL', 'undefined' ] }, |
| 244 | + ordered_globals: [ 'Vector', 'v1', 'v2' ], |
| 245 | + line: 2, |
256 | 246 | col: 9, |
257 | | - event: 'step_line', |
258 | | - heap: |
259 | | - { '1': |
260 | | - [ 'JS_FUNCTION', |
261 | | - 'Vector', |
262 | | - 'function Vector(x, y) {\n this.x = x;\n this.y = y;\n}', |
263 | | - [ [ 'prototype', [ 'REF', 2 ] ] ], |
264 | | - null ], |
265 | | - '2': [ 'INSTANCE', '', [ 'plus', [ 'REF', 3 ] ] ], |
266 | | - '3': |
267 | | - [ 'JS_FUNCTION', |
268 | | - '', |
269 | | - 'function (other) {\n return new Vector(this.x + other.x, this.y + other.y);\n}', |
270 | | - null, |
271 | | - null ], |
272 | | - '4': |
273 | | - [ 'INSTANCE', |
274 | | - '', |
275 | | - [ 'x', 1 ], |
276 | | - [ 'y', 2 ], |
277 | | - [ '__proto__', [ 'REF', 2 ] ] ] } }, |
278 | | - { stdout: '', |
279 | | - func_name: 'Vector', |
280 | | - stack_to_render: |
281 | | - [ { func_name: 'Vector', |
282 | | - frame_id: 3, |
283 | | - is_highlighted: true, |
284 | | - is_parent: false, |
285 | | - is_zombie: false, |
286 | | - parent_frame_id_list: [], |
287 | | - unique_hash: 'Vector_f3', |
288 | | - ordered_varnames: [ 'x', 'y', '__return__' ], |
289 | | - encoded_locals: { x: 20, y: 30, __return__: [ 'JS_SPECIAL_VAL', 'undefined' ] } } ], |
290 | | - globals: |
291 | | - { Vector: [ 'REF', 1 ], |
292 | | - v1: [ 'REF', 4 ], |
293 | | - v2: [ 'JS_SPECIAL_VAL', 'undefined' ], |
294 | | - x: 20, |
295 | | - y: 30 }, |
296 | | - ordered_globals: [ 'Vector', 'v1', 'v2', 'x', 'y' ], |
297 | | - line: 3, |
298 | | - col: 0, |
299 | | - event: 'return', |
300 | | - heap: |
301 | | - { '1': |
302 | | - [ 'JS_FUNCTION', |
303 | | - 'Vector', |
304 | | - 'function Vector(x, y) {\n this.x = x;\n this.y = y;\n}', |
305 | | - [ [ 'prototype', [ 'REF', 2 ] ] ], |
306 | | - null ], |
307 | | - '2': [ 'INSTANCE', '', [ 'plus', [ 'REF', 3 ] ] ], |
308 | | - '3': |
309 | | - [ 'JS_FUNCTION', |
310 | | - '', |
311 | | - 'function (other) {\n return new Vector(this.x + other.x, this.y + other.y);\n}', |
312 | | - null, |
313 | | - null ], |
314 | | - '4': |
315 | | - [ 'INSTANCE', |
316 | | - '', |
317 | | - [ 'x', 1 ], |
318 | | - [ 'y', 2 ], |
319 | | - [ '__proto__', [ 'REF', 2 ] ] ] } }, |
320 | | - { stdout: '', |
321 | | - func_name: '', |
322 | | - stack_to_render: [], |
323 | | - globals: |
324 | | - { Vector: [ 'REF', 1 ], |
325 | | - v1: [ 'REF', 4 ], |
326 | | - v2: [ 'JS_SPECIAL_VAL', 'undefined' ], |
327 | | - x: 20, |
328 | | - y: 30 }, |
329 | | - ordered_globals: [ 'Vector', 'v1', 'v2', 'x', 'y' ], |
330 | | - line: 11, |
331 | | - col: 48, |
332 | | - event: 'step_line', |
| 247 | + event: 'exception', |
333 | 248 | heap: |
334 | 249 | { '1': |
335 | 250 | [ 'JS_FUNCTION', |
|
0 commit comments