���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /home/real/node-v13.0.1/test/fixtures/wpt/console/ |
"use strict"; // https://heycam.github.io/webidl/#es-namespaces // https://console.spec.whatwg.org/#console-namespace test(() => { assert_true(self.hasOwnProperty("console")); }, "console exists on the global object"); test(() => { const propDesc = Object.getOwnPropertyDescriptor(self, "console"); assert_equals(propDesc.writable, true, "must be writable"); assert_equals(propDesc.enumerable, false, "must not be enumerable"); assert_equals(propDesc.configurable, true, "must be configurable"); assert_equals(propDesc.value, console, "must have the right value"); }, "console has the right property descriptors"); test(() => { assert_false("Console" in self); }, "Console (uppercase, as if it were an interface) must not exist"); test(() => { const prototype1 = Object.getPrototypeOf(console); const prototype2 = Object.getPrototypeOf(prototype1); assert_equals(Object.getOwnPropertyNames(prototype1).length, 0, "The [[Prototype]] must have no properties"); assert_equals(prototype2, Object.prototype, "The [[Prototype]]'s [[Prototype]] must be %ObjectPrototype%"); }, "The prototype chain must be correct");