Go to file
Tim Starling 41b93dd7e1 Fixed setfenv() across a tail call
Fixed the issue noticed during testing of da06273e, and which resulted
in satest.setfenv1() being disabled. It's not possible to protect
environments by iterating through every stack level, calling getfenv()
at each one, because if any of the stack levels is a tail call, an error
is raised.

Such a tail call was introduced in da06273e, which is why the test broke.

Instead, just protect the actual specified environments, not their
callers. The callers will have to protect themselves.

Change-Id: If39104010ff2663c1bae5105cc8d37e276532100
2012-04-24 12:33:06 +10:00
common Nicer errors with backtraces etc. 2012-04-23 21:58:30 +10:00
engines Fixed setfenv() across a tail call 2012-04-24 12:33:06 +10:00
modules Nicer errors with backtraces etc. 2012-04-23 21:58:30 +10:00
tests/engines Fixed setfenv() across a tail call 2012-04-24 12:33:06 +10:00
.gitreview Adding .gitreview 2012-04-06 13:46:17 -04:00
Scribunto.i18n.php Nicer errors with backtraces etc. 2012-04-23 21:58:30 +10:00
Scribunto.magic.php File moves for extension rename, and removed unused directory 2012-04-06 05:06:27 +00:00
Scribunto.namespaces.php File moves for extension rename, and removed unused directory 2012-04-06 05:06:27 +00:00
Scribunto.php Nicer errors with backtraces etc. 2012-04-23 21:58:30 +10:00