ladybird/Libraries/LibWeb/HTML/ErrorInformation.h
Sam Atkins 218e646e72 LibWeb/HTML: Extract ErrorInformation struct into its own files
This is used from a few different places in the spec.
2025-11-30 11:47:10 +01:00

25 lines
528 B
C++

/*
* Copyright (c) 2025, Shannon Booth <shannon@serenityos.org>
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibJS/Runtime/Value.h>
namespace Web::HTML {
// https://html.spec.whatwg.org/multipage/webappapis.html#extract-error
struct ErrorInformation {
String message;
String filename;
JS::Value error;
size_t lineno { 0 };
size_t colno { 0 };
};
ErrorInformation extract_error_information(JS::VM&, JS::Value exception);
}