v8/test/inspector
Dominic Farolino 04b766ad80 Console: Fix namespace class string
Per the WebIDL specification, objects that are namespaces must have the
their class string value set to their identifier name [1]. Since per
spec, console is defined as a namespace [2], console's class string must
be "console".

However, since the console object in Chromium/v8 is directly implemented
inside of v8, it doesn't adhere to the WebIDL binding norms. Its
implementation manually had its @@toStringTag set to "Object", which is
incorrect. This CL corrects it to "console" and adjusts test
expectations accordingly.

Unfortunately, this CL will have web-exposed changes to Chromium that
are not tested anywhere, specifically because console's implementation
of namespace did not adhere to the WebIDL spec. Separately,
https://crrev.com/c/4193348 fixes Chromium's web-exposed tests and
stable test expectations, to manually treat console as a namespace
(despite its broken implementation) so that the global interface listing
tests properly enumerate attributes/methods on the console object.
Once this CL lands, those expectations will need to be changed.

The motivation for this change is to ensure that all console attributes
and methods are properly accounted for in the usual Blink webexposed
stable tests that are owned by the Blink API OWNERs. This is because
recently, v8 shipped a new console method (createTask()) that entirely
bypassed the Chromium launch process:
https://www.chromium.org/blink/launching-features/, because no files
needed to be approved by Blink API OWNERs.

[1]: https://webidl.spec.whatwg.org/#ref-for-dfn-class-string%E2%91%A8
[2]: https://console.spec.whatwg.org/#console-namespace

Change-Id: I0bbd05242fc815945cce40c65d74995950d64115
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4193308
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/main@{#85572}
2023-01-31 20:35:36 +00:00
..
console [inspector] Rename console.scheduleTask to console.createTask 2022-07-27 06:09:27 +00:00
cpu-profiler [wasm] Add more output to console-profile-wasm test 2022-10-17 15:18:25 +00:00
debugger [inspector] Fix handling of whitespace in breakpoint hinting 2023-01-24 06:09:19 +00:00
heap-profiler Don't run sampling-heap-profiler-flags with stress-incremental-marking 2022-09-15 12:53:28 +00:00
regress [cleanup] Remove experimental flag for [[Scopes]] removal 2023-01-11 11:51:48 +00:00
runtime Console: Fix namespace class string 2023-01-31 20:35:36 +00:00
sessions [inspector] Provide more details about destroyed context 2023-01-05 09:27:47 +00:00
BUILD.gn Include test/inspector/regress to swarming 2021-07-29 08:00:47 +00:00
DEPS [test] Remove some unused includes (2) 2022-07-19 08:55:55 +00:00
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
frontend-channel.h [execution] Pass microtask queue from Context to MicrotasksScope 2022-10-19 14:56:37 +00:00
inspector-test.cc [test] Move inspector stopping to session 2022-12-13 06:59:09 +00:00
inspector.status Skip failing test on android 2023-01-25 13:19:44 +00:00
isolate-data.cc Revert "Fix a few more places where we don't check for termination" 2022-12-14 13:08:13 +00:00
isolate-data.h [test] Move inspector stopping to session 2022-12-13 06:59:09 +00:00
json-parse-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
json-parse.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
print-method-not-found-expected.txt [tests] Filter out non-existent methods in inspector tests 2020-01-17 12:21:29 +00:00
print-method-not-found.js [tests] Filter out non-existent methods in inspector tests 2020-01-17 12:21:29 +00:00
private-class-member-inspector-test.js [class] support out-of-scope private member access in debug-evaluate 2023-01-20 22:26:44 +00:00
protocol-test.js [inspector] Omit call frames in instrumentation pause messages 2023-01-19 06:39:10 +00:00
task-runner.cc Reland "[flags] Remove FLAG_* aliases" 2022-10-14 13:13:55 +00:00
task-runner.h [test] Remove some unused includes (2) 2022-07-19 08:55:55 +00:00
tasks.cc Fix gcc build following https://crrev.com/c/v8/v8/+/3976353 2022-11-10 22:35:41 +00:00
tasks.h DevTools: use a barrier to sync runIfWaitingForDebugger from multiple sessions 2022-11-10 20:23:01 +00:00
testcfg.py [test] Include shard info in test records 2023-01-23 09:50:01 +00:00
utils.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
utils.h [test] Remove some unused includes (2) 2022-07-19 08:55:55 +00:00
wasm-inspector-test.js [testing][wasm] Inspector: Print 'null' for empty table entries 2022-11-11 10:53:52 +00:00