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

Unified Diff: Source/bindings/v8/V8ThrowException.h

Issue 22985006: Throw an exception when denying access to 'Frame's 'location' setter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « Source/bindings/v8/V8Initializer.cpp ('k') | Source/bindings/v8/V8ThrowException.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8ThrowException.h
diff --git a/Source/bindings/v8/V8ThrowException.h b/Source/bindings/v8/V8ThrowException.h
index 6f3ed2d58ea54158438c9e1ea64badb37c4f1d4e..65cb26545cebb6a000370ea0feaacb7a562a10ea 100644
--- a/Source/bindings/v8/V8ThrowException.h
+++ b/Source/bindings/v8/V8ThrowException.h
@@ -45,13 +45,21 @@ public:
{
return createDOMException(ec, String(), isolate);
}
- static v8::Handle<v8::Value> createDOMException(int, const String&, v8::Isolate*);
+ static v8::Handle<v8::Value> createDOMException(int ec, const String& message, v8::Isolate* isolate)
+ {
+ return createDOMException(ec, message, String(), isolate);
+ }
+ static v8::Handle<v8::Value> createDOMException(int, const String& sanitizedMessage, const String& unsanitizedMessage, v8::Isolate*);
static v8::Handle<v8::Value> throwDOMException(int ec, v8::Isolate* isolate)
{
return throwDOMException(ec, String(), isolate);
}
- static v8::Handle<v8::Value> throwDOMException(int, const String&, v8::Isolate*);
+ static v8::Handle<v8::Value> throwDOMException(int ec, const String& message, v8::Isolate* isolate)
+ {
+ return throwDOMException(ec, message, String(), isolate);
+ }
+ static v8::Handle<v8::Value> throwDOMException(int, const String& sanitizedMessage, const String& unsanitizedMessage, v8::Isolate*);
static v8::Handle<v8::Value> createError(V8ErrorType, const String&, v8::Isolate*);
static v8::Handle<v8::Value> throwError(V8ErrorType, const String&, v8::Isolate*);
« no previous file with comments | « Source/bindings/v8/V8Initializer.cpp ('k') | Source/bindings/v8/V8ThrowException.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698