Corrected bug in 'luaD_tryfuncTM'

The pointer to the metamethod can be invalidated by a finalizer that
can run during a GC in 'checkstackGCp'. (This commit also fixes a
detail in the manual.) Bug introduced in commit 91673a8ec.
This commit is contained in:
Roberto Ierusalimschy
2021-11-16 14:35:06 -03:00
parent e8deac5a41
commit 6b3e116d44
2 changed files with 3 additions and 2 deletions

View File

@@ -6247,7 +6247,7 @@ to its caller.
}
@LibEntry{error (message [, level])|
Raises an error @see{error} with @{message} as the error object.
Raises an error @see{error} with @id{message} as the error object.
This function never returns.
Usually, @id{error} adds some information about the error position