|
| 1 | +{ code: 'function foo() {\n var xxx = 5;\n if (true) {\n let xxx = 10;\n console.log(xxx);\n }\n console.log(xxx);\n}\n\nfoo()', |
| 2 | + trace: |
| 3 | + [ { stdout: '', |
| 4 | + func_name: '', |
| 5 | + stack_to_render: [], |
| 6 | + globals: { foo: [ 'REF', 1 ] }, |
| 7 | + ordered_globals: [ 'foo' ], |
| 8 | + line: 10, |
| 9 | + col: 0, |
| 10 | + event: 'step_line', |
| 11 | + heap: |
| 12 | + { '1': |
| 13 | + [ 'JS_FUNCTION', |
| 14 | + 'foo', |
| 15 | + 'function foo() {\n var xxx = 5;\n if (true) {\n let xxx = 10;\n console.log(xxx);\n }\n console.log(xxx);\n}', |
| 16 | + null, |
| 17 | + null ] } }, |
| 18 | + { stdout: '', |
| 19 | + func_name: 'foo', |
| 20 | + stack_to_render: |
| 21 | + [ { func_name: 'foo', |
| 22 | + frame_id: 2, |
| 23 | + is_highlighted: true, |
| 24 | + is_parent: false, |
| 25 | + is_zombie: false, |
| 26 | + parent_frame_id_list: [], |
| 27 | + unique_hash: 'foo_f2', |
| 28 | + ordered_varnames: [ 'xxx' ], |
| 29 | + encoded_locals: { xxx: [ 'JS_SPECIAL_VAL', 'undefined' ] } } ], |
| 30 | + globals: { foo: [ 'REF', 1 ] }, |
| 31 | + ordered_globals: [ 'foo' ], |
| 32 | + line: 2, |
| 33 | + col: 2, |
| 34 | + event: 'call', |
| 35 | + heap: |
| 36 | + { '1': |
| 37 | + [ 'JS_FUNCTION', |
| 38 | + 'foo', |
| 39 | + 'function foo() {\n var xxx = 5;\n if (true) {\n let xxx = 10;\n console.log(xxx);\n }\n console.log(xxx);\n}', |
| 40 | + null, |
| 41 | + null ] } }, |
| 42 | + { stdout: '', |
| 43 | + func_name: 'foo', |
| 44 | + stack_to_render: |
| 45 | + [ { func_name: 'foo', |
| 46 | + frame_id: 2, |
| 47 | + is_highlighted: true, |
| 48 | + is_parent: false, |
| 49 | + is_zombie: false, |
| 50 | + parent_frame_id_list: [], |
| 51 | + unique_hash: 'foo_f2', |
| 52 | + ordered_varnames: [ 'xxx' ], |
| 53 | + encoded_locals: { xxx: 5 } } ], |
| 54 | + globals: { foo: [ 'REF', 1 ] }, |
| 55 | + ordered_globals: [ 'foo' ], |
| 56 | + line: 3, |
| 57 | + col: 2, |
| 58 | + event: 'step_line', |
| 59 | + heap: |
| 60 | + { '1': |
| 61 | + [ 'JS_FUNCTION', |
| 62 | + 'foo', |
| 63 | + 'function foo() {\n var xxx = 5;\n if (true) {\n let xxx = 10;\n console.log(xxx);\n }\n console.log(xxx);\n}', |
| 64 | + null, |
| 65 | + null ] } }, |
| 66 | + { stdout: '', |
| 67 | + func_name: 'foo', |
| 68 | + stack_to_render: |
| 69 | + [ { func_name: 'foo', |
| 70 | + frame_id: 2, |
| 71 | + is_highlighted: true, |
| 72 | + is_parent: false, |
| 73 | + is_zombie: false, |
| 74 | + parent_frame_id_list: [], |
| 75 | + unique_hash: 'foo_f2', |
| 76 | + ordered_varnames: [ 'xxx' ], |
| 77 | + encoded_locals: { xxx: 5 } } ], |
| 78 | + globals: { foo: [ 'REF', 1 ] }, |
| 79 | + ordered_globals: [ 'foo' ], |
| 80 | + line: 4, |
| 81 | + col: 4, |
| 82 | + event: 'step_line', |
| 83 | + heap: |
| 84 | + { '1': |
| 85 | + [ 'JS_FUNCTION', |
| 86 | + 'foo', |
| 87 | + 'function foo() {\n var xxx = 5;\n if (true) {\n let xxx = 10;\n console.log(xxx);\n }\n console.log(xxx);\n}', |
| 88 | + null, |
| 89 | + null ] } }, |
| 90 | + { stdout: '', |
| 91 | + func_name: 'foo', |
| 92 | + stack_to_render: |
| 93 | + [ { func_name: 'foo', |
| 94 | + frame_id: 2, |
| 95 | + is_highlighted: true, |
| 96 | + is_parent: false, |
| 97 | + is_zombie: false, |
| 98 | + parent_frame_id_list: [], |
| 99 | + unique_hash: 'foo_f2', |
| 100 | + ordered_varnames: [ 'xxx' ], |
| 101 | + encoded_locals: { xxx: 5 } } ], |
| 102 | + globals: { foo: [ 'REF', 1 ] }, |
| 103 | + ordered_globals: [ 'foo' ], |
| 104 | + line: 5, |
| 105 | + col: 4, |
| 106 | + event: 'step_line', |
| 107 | + heap: |
| 108 | + { '1': |
| 109 | + [ 'JS_FUNCTION', |
| 110 | + 'foo', |
| 111 | + 'function foo() {\n var xxx = 5;\n if (true) {\n let xxx = 10;\n console.log(xxx);\n }\n console.log(xxx);\n}', |
| 112 | + null, |
| 113 | + null ] } }, |
| 114 | + { stdout: '10\n', |
| 115 | + func_name: 'foo', |
| 116 | + stack_to_render: |
| 117 | + [ { func_name: 'foo', |
| 118 | + frame_id: 2, |
| 119 | + is_highlighted: true, |
| 120 | + is_parent: false, |
| 121 | + is_zombie: false, |
| 122 | + parent_frame_id_list: [], |
| 123 | + unique_hash: 'foo_f2', |
| 124 | + ordered_varnames: [ 'xxx' ], |
| 125 | + encoded_locals: { xxx: 5 } } ], |
| 126 | + globals: { foo: [ 'REF', 1 ] }, |
| 127 | + ordered_globals: [ 'foo' ], |
| 128 | + line: 7, |
| 129 | + col: 2, |
| 130 | + event: 'step_line', |
| 131 | + heap: |
| 132 | + { '1': |
| 133 | + [ 'JS_FUNCTION', |
| 134 | + 'foo', |
| 135 | + 'function foo() {\n var xxx = 5;\n if (true) {\n let xxx = 10;\n console.log(xxx);\n }\n console.log(xxx);\n}', |
| 136 | + null, |
| 137 | + null ] } }, |
| 138 | + { stdout: '10\n5\n', |
| 139 | + func_name: 'foo', |
| 140 | + stack_to_render: |
| 141 | + [ { func_name: 'foo', |
| 142 | + frame_id: 2, |
| 143 | + is_highlighted: true, |
| 144 | + is_parent: false, |
| 145 | + is_zombie: false, |
| 146 | + parent_frame_id_list: [], |
| 147 | + unique_hash: 'foo_f2', |
| 148 | + ordered_varnames: [ 'xxx', '__return__' ], |
| 149 | + encoded_locals: { xxx: 5, __return__: [ 'JS_SPECIAL_VAL', 'undefined' ] } } ], |
| 150 | + globals: { foo: [ 'REF', 1 ] }, |
| 151 | + ordered_globals: [ 'foo' ], |
| 152 | + line: 7, |
| 153 | + col: 0, |
| 154 | + event: 'return', |
| 155 | + heap: |
| 156 | + { '1': |
| 157 | + [ 'JS_FUNCTION', |
| 158 | + 'foo', |
| 159 | + 'function foo() {\n var xxx = 5;\n if (true) {\n let xxx = 10;\n console.log(xxx);\n }\n console.log(xxx);\n}', |
| 160 | + null, |
| 161 | + null ] } }, |
| 162 | + { stdout: '10\n5\n', |
| 163 | + func_name: '', |
| 164 | + stack_to_render: [], |
| 165 | + globals: { foo: [ 'REF', 1 ] }, |
| 166 | + ordered_globals: [ 'foo' ], |
| 167 | + line: 10, |
| 168 | + col: 5, |
| 169 | + event: 'step_line', |
| 170 | + heap: |
| 171 | + { '1': |
| 172 | + [ 'JS_FUNCTION', |
| 173 | + 'foo', |
| 174 | + 'function foo() {\n var xxx = 5;\n if (true) {\n let xxx = 10;\n console.log(xxx);\n }\n console.log(xxx);\n}', |
| 175 | + null, |
| 176 | + null ] } } ] } |
0 commit comments