truffleruby icon indicating copy to clipboard operation
truffleruby copied to clipboard

Raising a RuntimeError when calling Kernel#binding from a C/non-ruby frame.

Open goyox86 opened this issue 1 year ago • 0 comments

Ruby 3.2 compatibility.

Addresses "Kernel#binding raises RuntimeError if called from a non-Ruby frame (such as a method defined in C)." defined in https://github.com/oracle/truffleruby/issues/3039

CRuby: https://bugs.ruby-lang.org/issues/18487

Used the same stack walking as seen in https://github.com/Shopify/truffleruby/blob/90bfaa00401778f11849dbca05eb1bd008271c1b/src/main/java/org/truffleruby/language/arguments/ReadCallerVariablesNode.java#L46

goyox86 avatar Feb 08 '24 18:02 goyox86