Truly independent web browser
/*
* Copyright (c) 2025, Shannon Booth <[email protected]>
* Copyright (c) 2025, Sam Atkins <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Utf16String.h>
#include <LibJS/Runtime/Value.h>
namespace Web::HTML {
// https://html.spec.whatwg.org/multipage/webappapis.html#extract-error
struct ErrorInformation {
Utf16String message;
Utf16String filename;
JS::Value error;
size_t lineno { 0 };
size_t colno { 0 };
};
ErrorInformation extract_error_information(JS::VM&, JS::Value exception);
}