{"code":"// from https://github.com/pgbovine/OnlinePythonTutor/issues/216\nfunction Square() {\n  this.x = 'hello';\n}\n\nSquare.prototype.area = function () {\n  return 42;\n};\n\nvar s1 = new Square(5);","trace":[{"stdout":"","func_name":"","stack_to_render":[],"globals":{"Square":["REF",1],"s1":["JS_SPECIAL_VAL","undefined"]},"ordered_globals":["Square","s1"],"line":6,"col":0,"event":"step_line","heap":{"1":["JS_FUNCTION","Square","function Square() {\n  this.x = 'hello';\n}",null,null]}},{"stdout":"","func_name":"","stack_to_render":[],"globals":{"Square":["REF",1],"s1":["JS_SPECIAL_VAL","undefined"]},"ordered_globals":["Square","s1"],"line":10,"col":0,"event":"step_line","heap":{"1":["JS_FUNCTION","Square","function Square() {\n  this.x = 'hello';\n}",[["prototype",["REF",2]]],null],"2":["INSTANCE","",["area",["REF",3]]],"3":["JS_FUNCTION","","function () {\n  return 42;\n}",null,null]}},{"stdout":"","func_name":"Square","stack_to_render":[{"func_name":"Square (constructor)","frame_id":2,"is_highlighted":true,"is_parent":false,"is_zombie":false,"parent_frame_id_list":[],"unique_hash":"Square (constructor)_f2","ordered_varnames":["this"],"encoded_locals":{"this":["REF",4]}}],"globals":{"Square":["REF",1],"s1":["JS_SPECIAL_VAL","undefined"]},"ordered_globals":["Square","s1"],"line":3,"col":2,"event":"call","heap":{"1":["JS_FUNCTION","Square","function Square() {\n  this.x = 'hello';\n}",[["prototype",["REF",2]]],null],"2":["INSTANCE","",["area",["REF",3]]],"3":["JS_FUNCTION","","function () {\n  return 42;\n}",null,null],"4":["INSTANCE","",["__proto__",["REF",2]]]}},{"stdout":"","func_name":"Square","stack_to_render":[{"func_name":"Square (constructor)","frame_id":2,"is_highlighted":true,"is_parent":false,"is_zombie":false,"parent_frame_id_list":[],"unique_hash":"Square (constructor)_f2","ordered_varnames":["this","__return__"],"encoded_locals":{"this":["REF",4],"__return__":["REF",4]}}],"globals":{"Square":["REF",1],"s1":["JS_SPECIAL_VAL","undefined"]},"ordered_globals":["Square","s1"],"line":3,"col":0,"event":"return","heap":{"1":["JS_FUNCTION","Square","function Square() {\n  this.x = 'hello';\n}",[["prototype",["REF",2]]],null],"2":["INSTANCE","",["area",["REF",3]]],"3":["JS_FUNCTION","","function () {\n  return 42;\n}",null,null],"4":["INSTANCE","",["x","hello"],["__proto__",["REF",2]]]}},{"stdout":"","func_name":"","stack_to_render":[],"globals":{"Square":["REF",1],"s1":["REF",4]},"ordered_globals":["Square","s1"],"line":10,"col":23,"event":"step_line","heap":{"1":["JS_FUNCTION","Square","function Square() {\n  this.x = 'hello';\n}",[["prototype",["REF",2]]],null],"2":["INSTANCE","",["area",["REF",3]]],"3":["JS_FUNCTION","","function () {\n  return 42;\n}",null,null],"4":["INSTANCE","",["x","hello"],["__proto__",["REF",2]]]}}]}
