[cleanup] Remove experimental flag for [[Scopes]] removal
After we received feedback about some legitmate use-cases of the internal [[Scopes]] property, we decided to not go ahead with its removal. This CL removes the corresponding experimental flag. R=kimanh@chromium.org Bug: chromium:1365858 Change-Id: I6744889b4e2e960695838648e2f4902cbdb75890 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4154416 Auto-Submit: Simon Zünd <szuend@chromium.org> Commit-Queue: Simon Zünd <szuend@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org> Reviewed-by: Kim-Anh Tran <kimanh@chromium.org> Cr-Commit-Position: refs/heads/main@{#85214}
This commit is contained in:
parent
705c8406a5
commit
c16405e82e
@ -1389,10 +1389,6 @@ MaybeLocal<Message> GetMessageFromPromise(Local<Promise> p) {
|
||||
i::Handle<i::JSMessageObject>::cast(maybeMessage));
|
||||
}
|
||||
|
||||
bool isExperimentalRemoveInternalScopesPropertyEnabled() {
|
||||
return i::v8_flags.experimental_remove_internal_scopes_property;
|
||||
}
|
||||
|
||||
void RecordAsyncStackTaggingCreateTaskCall(v8::Isolate* v8_isolate) {
|
||||
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
|
||||
isolate->CountUsage(v8::Isolate::kAsyncStackTaggingCreateTaskCall);
|
||||
|
@ -679,8 +679,6 @@ AccessorPair* AccessorPair::Cast(v8::Value* value) {
|
||||
|
||||
MaybeLocal<Message> GetMessageFromPromise(Local<Promise> promise);
|
||||
|
||||
bool isExperimentalRemoveInternalScopesPropertyEnabled();
|
||||
|
||||
void RecordAsyncStackTaggingCreateTaskCall(v8::Isolate* isolate);
|
||||
|
||||
void NotifyDebuggerPausedEventSent(v8::Isolate* isolate);
|
||||
|
@ -1755,9 +1755,6 @@ DEFINE_NEG_IMPLICATION(fuzzing, hard_abort)
|
||||
DEFINE_BOOL(experimental_value_unavailable, false,
|
||||
"enable experimental <value unavailable> in scopes")
|
||||
|
||||
DEFINE_BOOL(experimental_remove_internal_scopes_property, false,
|
||||
"don't report the artificial [[Scopes]] property for functions")
|
||||
|
||||
// disassembler
|
||||
DEFINE_BOOL(log_colour, ENABLE_LOG_COLOUR,
|
||||
"When logging, try to use coloured output.")
|
||||
|
@ -862,10 +862,6 @@ v8::MaybeLocal<v8::Array> V8Debugger::internalProperties(
|
||||
createDataProperty(context, properties, properties->Length(), entries);
|
||||
}
|
||||
|
||||
if (v8::debug::isExperimentalRemoveInternalScopesPropertyEnabled()) {
|
||||
return properties;
|
||||
}
|
||||
|
||||
if (value->IsGeneratorObject()) {
|
||||
v8::Local<v8::Value> scopes;
|
||||
if (generatorScopes(context, value).ToLocal(&scopes)) {
|
||||
|
@ -2,8 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Flags: --no-experimental-remove-internal-scopes-property
|
||||
|
||||
let {session, contextGroup, Protocol} = InspectorTest.start('Tests that suspended generators produce scopes');
|
||||
|
||||
contextGroup.addScript(`
|
||||
|
@ -2,8 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Flags: --no-experimental-remove-internal-scopes-property
|
||||
|
||||
const {Protocol} = InspectorTest.start('Don\'t crash when getting the properties of a native function');
|
||||
|
||||
(async () => {
|
||||
|
@ -2,8 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Flags: --no-experimental-remove-internal-scopes-property
|
||||
|
||||
let {session, contextGroup, Protocol} = InspectorTest.start('Checks [[Scopes]] for functions');
|
||||
|
||||
contextGroup.addScript(`
|
||||
|
@ -2,8 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Flags: --no-experimental-remove-internal-scopes-property
|
||||
|
||||
let {session, contextGroup, Protocol} = InspectorTest.start('Checks internal properties in Runtime.getProperties output');
|
||||
|
||||
contextGroup.addScript(`
|
||||
|
Loading…
Reference in New Issue
Block a user