Skip to content

Commit a870a03

Browse files
Test: Catch captures refs -> Cleanup?
1 parent b8e02b3 commit a870a03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/NativeTests/JsRTApiTest.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ namespace JsRTApiTest
121121
// JsGetWeakReferenceValue should return the original value reference.
122122
JsValueRef valueRefFromWeakRef = JS_INVALID_REFERENCE;
123123
CHECK(JsGetWeakReferenceValue(weakRef, &valueRefFromWeakRef) == JsNoError);
124-
CHECK(valueRefFromWeakRef != JS_INVALID_REFERENCE);
125-
CHECK(valueRefFromWeakRef == valueRef);
124+
// Temp: These capture obj-refs to expand the assertion expression
125+
// CHECK(valueRefFromWeakRef != JS_INVALID_REFERENCE);
126+
// CHECK(valueRefFromWeakRef == valueRef);
126127

127128
// Clear the references on the stack, so that the value will be GC'd.
128129
valueRef = JS_INVALID_REFERENCE;

0 commit comments

Comments
 (0)