balls icon indicating copy to clipboard operation
balls copied to clipboard

layer try/except blocks

Open disruptek opened this issue 5 years ago • 0 comments

We should layer statements in each block so that we can accumulate state without breaking scope and still catch exceptions. This will unify var x = foo() statements with the rest of the tests.

var x = foo()
test2()

...turns into...

try:
  var x = foo()
  try:
     test2()
  except: ...
  finally: ...
except: ...
finally: ...

disruptek avatar Sep 08 '20 20:09 disruptek