Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.28',
'v8_embedder_string': '-node.29',

##### V8 defaults for Node.js #####

Expand Down
4 changes: 0 additions & 4 deletions deps/v8/src/builtins/builtins.cc
Original file line number Diff line number Diff line change
Expand Up @@ -838,10 +838,6 @@ Builtins::JSBuiltinStateFlags Builtins::GetJSBuiltinState(Builtin builtin) {
case Builtin::kErrorIsError:
RETURN_FLAG_DEPENDENT_BUILTIN_STATE(v8_flags.js_error_iserror);

// --js-regexp-escape
case Builtin::kRegExpEscape:
RETURN_FLAG_DEPENDENT_BUILTIN_STATE(v8_flags.js_regexp_escape);

// --js-explicit-resource-management
case Builtin::kSuppressedErrorConstructor:
case Builtin::kDisposableStackConstructor:
Expand Down
1 change: 0 additions & 1 deletion deps/v8/src/flags/flag-definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ DEFINE_BOOL(js_shipping, true, "enable all shipped JavaScript features")
V(js_promise_try, "Promise.try") \
V(js_atomics_pause, "Atomics.pause") \
V(js_error_iserror, "Error.isError") \
V(js_regexp_escape, "RegExp.escape") \
V(js_explicit_resource_management, "explicit resource management") \
V(js_float16array, \
"Float16Array, Math.f16round, DataView.getFloat16, DataView.setFloat16") \
Expand Down
10 changes: 3 additions & 7 deletions deps/v8/src/init/bootstrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3320,6 +3320,9 @@ void Genesis::InitializeGlobal(DirectHandle<JSGlobalObject> global_object,
INSTALL_CAPTURE_GETTER(8);
INSTALL_CAPTURE_GETTER(9);
#undef INSTALL_CAPTURE_GETTER

SimpleInstallFunction(isolate_, regexp_fun, "escape",
Builtin::kRegExpEscape, 1, kAdapt);
}
SetConstructorInstanceType(isolate_, regexp_fun,
JS_REG_EXP_CONSTRUCTOR_TYPE);
Expand Down Expand Up @@ -5897,14 +5900,7 @@ void Genesis::InitializeGlobal_js_float16array() {
Context::FLOAT16_ARRAY_FUN_INDEX);
}

void Genesis::InitializeGlobal_js_regexp_escape() {
if (!v8_flags.js_regexp_escape) return;

DirectHandle<JSFunction> regexp_fun(native_context()->regexp_function(),
isolate());
SimpleInstallFunction(isolate(), regexp_fun, "escape", Builtin::kRegExpEscape,
1, kAdapt);
}

void Genesis::InitializeGlobal_js_defer_import_eval() {}

Expand Down
1 change: 0 additions & 1 deletion deps/v8/test/test262/testcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
'source-phase-imports': '--js-source-phase-imports --allow-natives-syntax',
'Error.isError': '--js-error-iserror',
'uint8array-base64': '--js-base-64',
'RegExp.escape': '--js-regexp-escape',
'upsert': '--js-upsert',
'Intl.Locale': '--js-intl-locale-variants',
'nonextensible-applies-to-private': '--js-nonextensible-applies-to-private',
Expand Down
7 changes: 2 additions & 5 deletions lib/internal/util/debuglog.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const {
NumberPrototypeToFixed,
ObjectDefineProperty,
RegExp,
RegExpEscape,
RegExpPrototypeExec,
SafeArrayIterator,
SafeMap,
Expand Down Expand Up @@ -34,11 +35,7 @@ let testEnabled;
function initializeDebugEnv(debugEnv) {
debugImpls = { __proto__: null };
if (debugEnv) {
// This is run before any user code, it's OK not to use primordials.
debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, '\\$&')
.replaceAll('*', '.*')
.replaceAll(',', '$|^');
const debugEnvRegex = new RegExp(`^${debugEnv}$`, 'i');
const debugEnvRegex = new RegExp(`^${RegExpEscape(debugEnv)}$`, 'i');
testEnabled = (str) => RegExpPrototypeExec(debugEnvRegex, str) !== null;
} else {
testEnabled = () => false;
Expand Down
Loading