Line data Source code
1 : // Copyright (c) 2020 Famedly GmbH 2 : // SPDX-License-Identifier: AGPL-3.0-or-later 3 : 4 : /// This exception is thrown on Native only. olm.js does not detect 5 : /// use-after-free, resulting in undefined behavior on Web. 6 : class UseAfterFreeError extends Error { 7 0 : String toString() => 8 : 'Attempted to use (or double-free) a freed libolm object'; 9 : }