Make console a namespace (fixes #13010)

This commit is contained in:
Anthony Ramine 2016-09-06 15:47:53 +02:00
parent 0b689a8a31
commit 2bc0862f47
9 changed files with 30 additions and 73 deletions

View file

@ -9,8 +9,10 @@
* © Copyright 2014 Mozilla Foundation.
*/
[Exposed=(Window,Worker)]
interface Console {
[ClassString="Console",
Exposed=(Window,Worker),
ProtoObjectHack]
namespace console {
// These should be DOMString message, DOMString message2, ...
void log(DOMString... messages);
void debug(DOMString... messages);

View file

@ -161,7 +161,6 @@ partial interface Window {
// Proprietary extensions.
partial interface Window {
readonly attribute Console console;
void debug(DOMString arg);
void gc();
void trap();

View file

@ -24,10 +24,3 @@ partial interface WorkerGlobalScope { // not obsolete
};
WorkerGlobalScope implements WindowTimers;
WorkerGlobalScope implements WindowBase64;
// Proprietary
[Exposed=Worker]
partial interface WorkerGlobalScope {
[Replaceable]
readonly attribute Console console;
};