diff options
| author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-12-11 12:14:21 -0500 |
|---|---|---|
| committer | Jemma Issroff <jemmaissroff@gmail.com> | 2023-12-11 12:53:47 -0500 |
| commit | fb935350707ce14b2f678612dae4cae079fd163c (patch) | |
| tree | 4111dd99cdc2f54e031dfa259c1332a367bb4d13 /test/ruby | |
| parent | 3f25c08fa598ba48da8bb504aabe93a4a4c2d486 (diff) | |
[PRISM] Define and use a pm_add_ensure_iseq
Prior to this commit, we were using `add_ensure_iseq` which compiled
a node as if it was a CRuby node. This commit defines
`pm_add_ensure_iseq` which compiles the Prism node appropriately.
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index 4b08d9eecc..e501efa6c9 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -847,6 +847,15 @@ module Prism end end CODE + assert_prism_eval(<<-CODE) + def self.prism_test_ensure_node + begin + ensure + end + return + end + prism_test_ensure_node + CODE end def test_NextNode |
