Mark _globalOptions as well as _lastError in CodeEmitter::setLastError()

This commit is contained in:
kobalicek
2017-02-20 08:56:38 +01:00
parent 2416e428a3
commit bb8b6d9fa2

View File

@@ -135,6 +135,7 @@ Error CodeEmitter::setLastError(Error error, const char* message) {
// to terminate the execution of `setLastError()`. This is the reason why // to terminate the execution of `setLastError()`. This is the reason why
// we have delayed changing the `_error` member until now. // we have delayed changing the `_error` member until now.
_lastError = error; _lastError = error;
_globalOptions |= kOptionMaybeFailureCase;
return error; return error;
} }