Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Unified Diff: Source/core/dom/DOMCoreException.h

Issue 15605003: Make Exception and Error objects ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/DOMError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMCoreException.h
diff --git a/Source/core/dom/DOMCoreException.h b/Source/core/dom/DOMCoreException.h
index 64fd5ccbcff15ce776ba58c45e567fea062815dc..1a98c6e4b091d1d846d4e0eb29185743ca578fa0 100644
--- a/Source/core/dom/DOMCoreException.h
+++ b/Source/core/dom/DOMCoreException.h
@@ -29,11 +29,12 @@
#ifndef DOMCoreException_h
#define DOMCoreException_h
+#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/ExceptionBase.h"
namespace WebCore {
-class DOMCoreException : public ExceptionBase {
+class DOMCoreException : public ExceptionBase, public ScriptWrappable {
public:
static PassRefPtr<DOMCoreException> create(const ExceptionCodeDescription& description)
{
@@ -46,6 +47,7 @@ private:
explicit DOMCoreException(const ExceptionCodeDescription& description)
: ExceptionBase(description)
{
+ ScriptWrappable::init(this);
}
};
« no previous file with comments | « no previous file | Source/core/dom/DOMError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698