Skip to content

Commit affecae

Browse files
committed
jsc: fix weakref
1 parent c09c658 commit affecae

File tree

1 file changed

+1
-1
lines changed
  • test-app/runtime/src/main/cpp/runtime/weakref

1 file changed

+1
-1
lines changed

test-app/runtime/src/main/cpp/runtime/weakref/WeakRef.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void WeakRef::Init(napi_env env) {
2727

2828
napi_value wr;
2929
napi_get_named_property(env, global, "WeakRef", &wr);
30-
if (!napi_util::is_null_or_undefined(env, wr)) {
30+
if (napi_util::is_null_or_undefined(env, wr)) {
3131
napi_value cons;
3232
napi_define_class(env, "WeakRef", NAPI_AUTO_LENGTH, New, nullptr, 2, properties, &cons);
3333
napi_set_named_property(env, global, "WeakRef", cons);

0 commit comments

Comments
 (0)