diff --git a/doc/tutorial_episode_4.pod b/doc/tutorial_episode_4.pod index 5d641f0..4708dc6 100644 --- a/doc/tutorial_episode_4.pod +++ b/doc/tutorial_episode_4.pod @@ -189,11 +189,9 @@ representing the "throw" instruction. method statement:sym($/) { make PAST::Op.new( $.ast, - :pirop('throw'), + :pirop('die'), :node($/) ); } -TODO(replace this with something that works) - =head2 What's Next? diff --git a/src/Squaak/Actions.pm b/src/Squaak/Actions.pm index 6923a68..f6368d5 100644 --- a/src/Squaak/Actions.pm +++ b/src/Squaak/Actions.pm @@ -173,7 +173,7 @@ method arguments($/) { method statement:sym($/) { make PAST::Op.new( $.ast, - :pirop('throw'), + :pirop('die'), :node($/) ); }