summaryrefslogtreecommitdiffstats
path: root/dom/bindings/nsIScriptError.idl
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-16 10:21:27 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:33 -0400
commit332c1c28ac6fdb66b6dc4ea6732d98be8d87749b (patch)
tree247953c3abb7a4034646f1858e6657a3be144554 /dom/bindings/nsIScriptError.idl
parent4a82fdad87107d369df20da0a4a0987b1bd821fd (diff)
downloadUXP-332c1c28ac6fdb66b6dc4ea6732d98be8d87749b.tar
UXP-332c1c28ac6fdb66b6dc4ea6732d98be8d87749b.tar.gz
UXP-332c1c28ac6fdb66b6dc4ea6732d98be8d87749b.tar.lz
UXP-332c1c28ac6fdb66b6dc4ea6732d98be8d87749b.tar.xz
UXP-332c1c28ac6fdb66b6dc4ea6732d98be8d87749b.zip
1283712 - Part 7: Add nsIScriptErrorNote and nsIScriptError.notes.
Diffstat (limited to 'dom/bindings/nsIScriptError.idl')
-rw-r--r--dom/bindings/nsIScriptError.idl15
1 files changed, 14 insertions, 1 deletions
diff --git a/dom/bindings/nsIScriptError.idl b/dom/bindings/nsIScriptError.idl
index 468ca682f..8436361a8 100644
--- a/dom/bindings/nsIScriptError.idl
+++ b/dom/bindings/nsIScriptError.idl
@@ -9,13 +9,25 @@
#include "nsISupports.idl"
+#include "nsIArray.idl"
#include "nsIConsoleMessage.idl"
%{C++
#include "nsStringGlue.h" // for nsDependentCString
%}
-[scriptable, uuid(361be358-76f0-47aa-b37b-6ad833599e8d)]
+[scriptable, uuid(e8933fc9-c302-4e12-a55b-4f88611d9c6c)]
+interface nsIScriptErrorNote : nsISupports
+{
+ readonly attribute AString errorMessage;
+ readonly attribute AString sourceName;
+ readonly attribute uint32_t lineNumber;
+ readonly attribute uint32_t columnNumber;
+
+ AUTF8String toString();
+};
+
+[scriptable, uuid(63eb4d3e-7d99-4150-b4f3-11314f9d82a9)]
interface nsIScriptError : nsIConsoleMessage
{
/** pseudo-flag for default case */
@@ -74,6 +86,7 @@ interface nsIScriptError : nsIConsoleMessage
*/
attribute AString errorMessageName;
+ readonly attribute nsIArray notes;
void init(in AString message,
in AString sourceName,