mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
tests(wpt/console): Enables web platform tests for console (#9013)
This commit is contained in:
parent
f7e09c6a55
commit
9801858cb0
4 changed files with 21 additions and 2 deletions
|
@ -245,6 +245,11 @@ delete Object.prototype.__proto__;
|
|||
setTimeout: util.writable(timers.setTimeout),
|
||||
};
|
||||
|
||||
// The console seems to be the only one that should be writable and non-enumerable
|
||||
// thus we don't have a unique helper for it. If other properties follow the same
|
||||
// structure, it might be worth it to define a helper in `util`
|
||||
windowOrWorkerGlobalScope.console.enumerable = false;
|
||||
|
||||
const mainRuntimeGlobalProperties = {
|
||||
Window: globalInterfaces.windowConstructorDescriptor,
|
||||
window: util.readOnly(globalThis),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue