fix Issue 13725 - onInvalidMemoryOperationError et al should not be inlined