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

Unified Diff: Source/bindings/tests/results/V8TestEventTarget.cpp

Issue 22962003: Remove support for [IsIndex] IDL extended attribute (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/tests/idls/TestEventTarget.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/V8TestEventTarget.cpp
diff --git a/Source/bindings/tests/results/V8TestEventTarget.cpp b/Source/bindings/tests/results/V8TestEventTarget.cpp
index 0f674351461ed602e89a03aa94c762fcaf0a1dd9..065200962ca64f10456a742cf0439333feb5b92a 100644
--- a/Source/bindings/tests/results/V8TestEventTarget.cpp
+++ b/Source/bindings/tests/results/V8TestEventTarget.cpp
@@ -31,7 +31,6 @@
#include "bindings/v8/V8DOMWrapper.h"
#include "core/dom/ContextFeatures.h"
#include "core/dom/Document.h"
-#include "core/dom/ExceptionCode.h"
#include "core/page/Frame.h"
#include "core/platform/chromium/TraceEvent.h"
#include "wtf/GetPtr.h"
@@ -73,12 +72,7 @@ static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
return;
}
TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder());
- ExceptionState es(args.GetIsolate());
- V8TRYCATCH_VOID(int, index, toUInt32(args[0]));
- if (UNLIKELY(index < 0)) {
- setDOMException(IndexSizeError, args.GetIsolate());
- return;
- }
+ V8TRYCATCH_VOID(unsigned, index, toUInt32(args[0]));
v8SetReturnValue(args, toV8(imp->item(index), args.Holder(), args.GetIsolate()));
return;
}
« no previous file with comments | « Source/bindings/tests/idls/TestEventTarget.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698