v8/test
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
..
benchmarks Microoptimizations in FastDtoa. 2022-12-16 15:03:39 +00:00
bigint [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
cctest Remove CodeLookupResult 2023-01-31 15:03:28 +00:00
common Various post-Code rename cleanups 2023-01-18 16:26:26 +00:00
debugger [test] Include shard info in test records 2023-01-23 09:50:01 +00:00
debugging [test] Include shard info in test records 2023-01-23 09:50:01 +00:00
fuzzer [wasm-gc] Make extern.* instructions constant 2023-01-26 09:10:44 +00:00
fuzzilli [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
inspector Console: Fix namespace class string 2023-01-31 20:35:36 +00:00
intl [test] Include shard info in test records 2023-01-23 09:50:01 +00:00
js-perf-test [perf] Add file to js-perf-test resources list 2023-01-11 10:50:45 +00:00
memory [snapshot] Fix the Memory.json benchmark 2021-04-28 07:54:34 +00:00
message [test] Include shard info in test records 2023-01-23 09:50:01 +00:00
mjsunit [shared-struct] Disallow property redefinition 2023-01-31 18:42:46 +00:00
mkgrokdump [heap] Rename safepoint scopes 2022-10-25 16:32:55 +00:00
mozilla [mips32] Delete mips32 from v8 2022-09-13 07:54:54 +00:00
test262 RegExp.flags: check individual flags in correct order 2023-01-18 18:43:39 +00:00
torque Reland "Reland "[Torque] Generalize Torque literals to larger size"" 2022-02-04 09:40:24 +00:00
unittests [shared-struct] Disallow property redefinition 2023-01-31 18:42:46 +00:00
wasm-api-tests [wasm-gc] Final types 2022-12-20 14:03:30 +00:00
wasm-js [wasm] Update spec tests 2023-01-11 19:59:14 +00:00
wasm-spec-tests [wasm-spec-tests] Document failed memory64 tests 2023-01-24 15:16:19 +00:00
webkit [test] Include shard info in test records 2023-01-23 09:50:01 +00:00
BUILD.gn Configure PGO builders 2023-01-27 13:54:32 +00:00
OWNERS