mirror of
https://github.com/servo/servo.git
synced 2025-08-01 11:40:30 +01:00
Auto merge of #13185 - nox:namespaces, r=jdm,Ms2ger
Make console a namespace (fixes #13010) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13185) <!-- Reviewable:end -->
This commit is contained in:
commit
84f3cf22bf
16 changed files with 223 additions and 120 deletions
|
@ -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);
|
||||
|
|
|
@ -161,7 +161,6 @@ partial interface Window {
|
|||
|
||||
// Proprietary extensions.
|
||||
partial interface Window {
|
||||
readonly attribute Console console;
|
||||
void debug(DOMString arg);
|
||||
void gc();
|
||||
void trap();
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue