aboutsummaryrefslogtreecommitdiff
path: root/test/gc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-06-12 00:24:41 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-06-12 00:24:41 +0200
commit3b0a759b6baa03bf7d293614bf7a8ee4500794f9 (patch)
treee21559c02561da082dec3213ed820eeaacea8a2b /test/gc
parent393d33e7ea44a4410729e50303a6ad0d62558a8c (diff)
downloadandroid-node-v8-3b0a759b6baa03bf7d293614bf7a8ee4500794f9.tar.gz
android-node-v8-3b0a759b6baa03bf7d293614bf7a8ee4500794f9.tar.bz2
android-node-v8-3b0a759b6baa03bf7d293614bf7a8ee4500794f9.zip
test: fix up weakref.cc after v8 api change
Diffstat (limited to 'test/gc')
-rw-r--r--test/gc/node_modules/weak/src/weakref.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/gc/node_modules/weak/src/weakref.cc b/test/gc/node_modules/weak/src/weakref.cc
index 8f2c22d794..bda2e44e13 100644
--- a/test/gc/node_modules/weak/src/weakref.cc
+++ b/test/gc/node_modules/weak/src/weakref.cc
@@ -134,9 +134,10 @@ void AddCallback(Handle<Object> proxy, Handle<Function> callback) {
}
-void TargetCallback(Isolate* isolate, Persistent<Value> target, void* arg) {
+void TargetCallback(Isolate* isolate, Persistent<Object>* ptarget, void* arg) {
HandleScope scope(isolate);
+ Persistent<Object> target = *ptarget;
assert(target.IsNearDeath());
proxy_container *cont = reinterpret_cast<proxy_container*>(arg);
@@ -152,7 +153,7 @@ void TargetCallback(Isolate* isolate, Persistent<Value> target, void* arg) {
TryCatch try_catch;
- cb->Call(target->ToObject(), 1, argv);
+ cb->Call(target, 1, argv);
if (try_catch.HasCaught()) {
FatalException(try_catch);