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
6
7namespace v8 {
8namespace internal {
9
10const char* const kRegExpErrorStrings[] = {
11#define TEMPLATE(NAME, STRING) STRING,
13#undef TEMPLATE
14};
15
16const char* RegExpErrorString(RegExpError error) {
18 return kRegExpErrorStrings[static_cast<int>(error)];
19}
20
21} // namespace internal
22} // namespace v8
const char * RegExpErrorString(RegExpError error)
const char *const kRegExpErrorStrings[]
#define REGEXP_ERROR_MESSAGES(T)
#define DCHECK_LT(v1, v2)
Definition logging.h:489