Mercurial > octave
view test/compile/bytecode_load_script_save.m @ 32376:262768aefb8b
VM Fix loading and saving from bytecode script frame (bug #64705)
Makes load() and save() not panic in bytecode script frames.
* libinterp/corefcn/stack-frame.cc: Use varref() for scripts in insert_symbol
that got proper support for scripts.
* test/compile/: Tests updated.
author | Petter T. <petter.vilhelm@gmail.com> |
---|---|
date | Sat, 07 Oct 2023 00:50:18 +0200 |
parents | |
children | 8e4f14837db2 |
line wrap: on
line source
global glb_aa = 1; global glb_bb eval ("global glb_cc;") eval ("global glb_dd = 4;") global glb_ee; glb_ee = 5; local_aa = 1; eval ("local_bb = 2;") local_cc = 3; global bytecode_load_script_file save (bytecode_load_script_file, "glb_aa", "glb_bb", "glb_cc", "glb_dd", "glb_ee", "local_aa", "local_bb", "local_cc") clear global glb_aa glb_bb glb_cc glb_dd glb_ee clear local_aa local_bb local_cc