From 9801858cb0675de801b1c15d1b3826c88406068a Mon Sep 17 00:00:00 2001 From: Tarik Eshaq Date: Sun, 10 Jan 2021 09:49:45 -0800 Subject: tests(wpt/console): Enables web platform tests for console (#9013) --- runtime/js/02_console.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'runtime/js/02_console.js') diff --git a/runtime/js/02_console.js b/runtime/js/02_console.js index 971837bd6..11b819850 100644 --- a/runtime/js/02_console.js +++ b/runtime/js/02_console.js @@ -1449,7 +1449,14 @@ // For historical web-compatibility reasons, the namespace object for // console must have as its [[Prototype]] an empty object, created as if // by ObjectCreate(%ObjectPrototype%), instead of %ObjectPrototype%. - const console = Object.create({}); + const console = Object.create({}, { + [Symbol.toStringTag]: { + enumerable: false, + writable: false, + configurable: true, + value: "console", + }, + }); Object.assign(console, this); return console; } -- cgit v1.2.3