summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-12-19 03:40:44 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-12-19 03:51:37 +0900
commitacac2b8128980b97c64b4d057acdf2ceffb0b981 (patch)
treebae29bfb63407ab9f9cccc3c57070ac99fdfe879 /internal
parent7e0e6f90744ec89a87554d209fb797ddf7919319 (diff)
Make RubyVM::AbstractSyntaxTree.of raise for backtrace location in eval
This check is needed to fix a bug of error_highlight when NameError occurred in eval'ed code. https://github.com/ruby/error_highlight/pull/16 The same check for proc/method has been already introduced since 64ac984129a7a4645efe5ac57c168ef880b479b2.
Diffstat (limited to 'internal')
-rw-r--r--internal/vm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/vm.h b/internal/vm.h
index e902a81411..bfb593176e 100644
--- a/internal/vm.h
+++ b/internal/vm.h
@@ -111,7 +111,8 @@ VALUE rb_backtrace_to_str_ary(VALUE obj);
VALUE rb_backtrace_to_location_ary(VALUE obj);
void rb_backtrace_each(VALUE (*iter)(VALUE recv, VALUE str), VALUE output);
int rb_frame_info_p(VALUE obj);
-void rb_frame_info_get(VALUE obj, VALUE *path, VALUE *script_lines, int *node_id);
+int rb_get_node_id_from_frame_info(VALUE obj);
+const struct rb_iseq_struct *rb_get_iseq_from_frame_info(VALUE obj);
MJIT_SYMBOL_EXPORT_BEGIN
VALUE rb_ec_backtrace_object(const struct rb_execution_context_struct *ec);