Move debug functions to Window IDL.

This is a cleaner way to expose those functions, and makes it possible to
remove a significant amount code in rust-mozjs.

The assert() function is no longer exposed, as it was unused and not very
useful.
This commit is contained in:
Ms2ger 2014-05-09 14:44:07 +02:00
parent 052d3cb083
commit 30055d9820
4 changed files with 21 additions and 10 deletions

View file

@ -84,3 +84,9 @@ interface WindowTimers {
void clearInterval(optional long handle = 0);*/
};
Window implements WindowTimers;
// Proprietary extensions.
partial interface Window {
void debug(DOMString arg);
void gc();
};