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); |
} |