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

Unified Diff: test/cctest/test-api.cc

Issue 2194793003: Introduce Maybe::To/ToChecked (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | « include/v8.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 7d9a717270341b5ff61644b5f1cabe0f47851429..1cebdf0bf276a1c6f2c78ae4826f1579b37c386a 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -332,6 +332,11 @@ THREADED_TEST(Access) {
CHECK(!foo_after->IsUndefined());
CHECK(foo_after->IsString());
CHECK(bar_str->Equals(env.local(), foo_after).FromJust());
+
+ CHECK(obj->Set(env.local(), v8_str("foo"), bar_str).ToChecked());
+ bool result;
+ CHECK(obj->Set(env.local(), v8_str("foo"), bar_str).To(result));
+ CHECK(result);
}
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698