Skip to content

Commit 96b9922

Browse files
committed
Address comments
1 parent 9c29dca commit 96b9922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{ \
2424
if (lhs op rhs) { \
2525
rcl_reset_error(); \
26-
Napi::Error::New(rclnodejs::GetEnv(), message) \
26+
Napi::Error::New(env, message) \
2727
.ThrowAsJavaScriptException(); \
2828
return env.Undefined(); \
2929
} \
@@ -33,7 +33,7 @@
3333
{ \
3434
if (lhs op rhs) { \
3535
rcl_reset_error(); \
36-
Napi::Error::New(rclnodejs::GetEnv(), message) \
36+
Napi::Error::New(env, message) \
3737
.ThrowAsJavaScriptException(); \
3838
} \
3939
}

0 commit comments

Comments
 (0)