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

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

Issue 68893018: Rename es => exceptionState in bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/results/V8TestObjectPython.cpp ('k') | Source/bindings/v8/BindingSecurity.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/V8TestTypedefs.cpp
diff --git a/Source/bindings/tests/results/V8TestTypedefs.cpp b/Source/bindings/tests/results/V8TestTypedefs.cpp
index d18fcc79d76bcadf94ce60c6b96ef9bb1731c506..2dec4f233c5e244cbedc394398c691eae94d7627 100644
--- a/Source/bindings/tests/results/V8TestTypedefs.cpp
+++ b/Source/bindings/tests/results/V8TestTypedefs.cpp
@@ -137,9 +137,9 @@ static void immutableSerializedScriptValueAttributeSetterCallback(v8::Local<v8::
static void attrWithGetterExceptionAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder());
- ExceptionState es(info.GetIsolate());
- int jsValue = imp->attrWithGetterException(es);
- if (UNLIKELY(es.throwIfNeeded()))
+ ExceptionState exceptionState(info.GetIsolate());
+ int jsValue = imp->attrWithGetterException(exceptionState);
+ if (UNLIKELY(exceptionState.throwIfNeeded()))
return;
v8SetReturnValueInt(info, jsValue);
}
@@ -182,9 +182,9 @@ static void attrWithSetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue,
{
TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder());
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
- ExceptionState es(info.GetIsolate());
- imp->setAttrWithSetterException(cppValue, es);
- es.throwIfNeeded();
+ ExceptionState exceptionState(info.GetIsolate());
+ imp->setAttrWithSetterException(cppValue, exceptionState);
+ exceptionState.throwIfNeeded();
}
static void attrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
@@ -197,9 +197,9 @@ static void attrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::String>
static void stringAttrWithGetterExceptionAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder());
- ExceptionState es(info.GetIsolate());
- String jsValue = imp->stringAttrWithGetterException(es);
- if (UNLIKELY(es.throwIfNeeded()))
+ ExceptionState exceptionState(info.GetIsolate());
+ String jsValue = imp->stringAttrWithGetterException(exceptionState);
+ if (UNLIKELY(exceptionState.throwIfNeeded()))
return;
v8SetReturnValueString(info, jsValue, info.GetIsolate());
}
@@ -242,9 +242,9 @@ static void stringAttrWithSetterExceptionAttributeSetter(v8::Local<v8::Value> js
{
TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder());
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
- ExceptionState es(info.GetIsolate());
- imp->setStringAttrWithSetterException(cppValue, es);
- es.throwIfNeeded();
+ ExceptionState exceptionState(info.GetIsolate());
+ imp->setStringAttrWithSetterException(cppValue, exceptionState);
+ exceptionState.throwIfNeeded();
}
static void stringAttrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
@@ -408,10 +408,10 @@ static void stringArrayFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>&
return;
}
TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder());
- ExceptionState es(info.GetIsolate());
+ ExceptionState exceptionState(info.GetIsolate());
V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(info[0], 1, info.GetIsolate()));
- Vector<String> result = imp->stringArrayFunction(values, es);
- if (es.throwIfNeeded())
+ Vector<String> result = imp->stringArrayFunction(values, exceptionState);
+ if (exceptionState.throwIfNeeded())
return;
v8SetReturnValue(info, v8Array(result, info.GetIsolate()));
}
@@ -430,10 +430,10 @@ static void stringArrayFunction2Method(const v8::FunctionCallbackInfo<v8::Value>
return;
}
TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder());
- ExceptionState es(info.GetIsolate());
+ ExceptionState exceptionState(info.GetIsolate());
V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(info[0], 1, info.GetIsolate()));
- Vector<String> result = imp->stringArrayFunction2(values, es);
- if (es.throwIfNeeded())
+ Vector<String> result = imp->stringArrayFunction2(values, exceptionState);
+ if (exceptionState.throwIfNeeded())
return;
v8SetReturnValue(info, v8Array(result, info.GetIsolate()));
}
@@ -448,9 +448,9 @@ static void stringArrayFunction2MethodCallback(const v8::FunctionCallbackInfo<v8
static void methodWithExceptionMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder());
- ExceptionState es(info.GetIsolate());
- imp->methodWithException(es);
- if (es.throwIfNeeded())
+ ExceptionState exceptionState(info.GetIsolate());
+ imp->methodWithException(exceptionState);
+ if (exceptionState.throwIfNeeded())
return;
}
« no previous file with comments | « Source/bindings/tests/results/V8TestObjectPython.cpp ('k') | Source/bindings/v8/BindingSecurity.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698