[unified-heap] Adjust ScriptPromiseProperty GC test

The test checks that the JS wrapper gets collected while the C++
wrappable stays alive. This only worked by accident as wrapper tracing
does not see any stack pointers.

Adjust test to check that the JS wrapper gets collected as soon as the
C++ wrappable is cleared.

Bug: 843903
Change-Id: I2041f682f4a94d690f43292f70ea3e8d7fb3fd6b
Reviewed-on: https://chromium-review.googlesource.com/c/1293450
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601554}
1 file changed