v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
regexp-error.cc
Go to the documentation of this file.
1
// Copyright 2020 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include "
src/regexp/regexp-error.h
"
6
7
namespace
v8
{
8
namespace
internal
{
9
10
const
char
*
const
kRegExpErrorStrings
[] = {
11
#define TEMPLATE(NAME, STRING) STRING,
12
REGEXP_ERROR_MESSAGES
(
TEMPLATE
)
13
#undef TEMPLATE
14
};
15
16
const
char
*
RegExpErrorString
(
RegExpError
error) {
17
DCHECK_LT
(error,
RegExpError::NumErrors
);
18
return
kRegExpErrorStrings
[
static_cast<
int
>
(error)];
19
}
20
21
}
// namespace internal
22
}
// namespace v8
v8::internal::RegExpError
RegExpError
Definition
regexp-error.h:50
v8::internal::RegExpError::NumErrors
@ NumErrors
v8::internal::MessageTemplate::TEMPLATE
TEMPLATE(NAME, STRING)
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::RegExpErrorString
const char * RegExpErrorString(RegExpError error)
Definition
regexp-error.cc:16
v8::internal::kRegExpErrorStrings
const char *const kRegExpErrorStrings[]
Definition
regexp-error.cc:10
v8
Definition
api-arguments-inl.h:19
regexp-error.h
REGEXP_ERROR_MESSAGES
#define REGEXP_ERROR_MESSAGES(T)
Definition
regexp-error.h:14
DCHECK_LT
#define DCHECK_LT(v1, v2)
Definition
logging.h:489
src
regexp
regexp-error.cc
Generated on Sun Apr 6 2025 21:08:56 for v8 by
1.12.0