Skip to content

Commit 6b025df

Browse files
committed
Revert "src: fix -Wunused-variable compiler warning"
This reverts commit f938ef7. Refs: nodejs#6382 Refs: nodejs#6204 Refs: nodejs#5834
1 parent 635fb96 commit 6b025df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/handle_wrap.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ void HandleWrap::Unref(const FunctionCallbackInfo<Value>& args) {
3838

3939

4040
void HandleWrap::IsRefed(const FunctionCallbackInfo<Value>& args) {
41+
Environment* env = Environment::GetCurrent(args);
4142
HandleWrap* wrap = Unwrap<HandleWrap>(args.Holder());
4243

4344
bool refed = IsAlive(wrap) && (wrap->flags_ & kUnref) == 0;

0 commit comments

Comments
 (0)