Skip to content

Commit 2d44319

Browse files
committed
push out env var access
1 parent 1e00960 commit 2d44319

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fibers_sync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ function setupAsyncHacks(Fiber) {
8888
}
8989
}
9090

91+
const logUseFibersLevel = +(process.env.ENABLE_LOG_USE_FIBERS || 0);
92+
const { LOG_USE_FIBERS_INCLUDE_IN_PATH } = process.env;
9193
function logUsingFibers(fibersMethod) {
92-
const logUseFibersLevel = +(process.env.ENABLE_LOG_USE_FIBERS || 0);
9394

9495
if (!logUseFibersLevel) return;
9596

@@ -98,7 +99,6 @@ function setupAsyncHacks(Fiber) {
9899
return;
99100
}
100101

101-
const { LOG_USE_FIBERS_INCLUDE_IN_PATH } = process.env;
102102
const stackFromError = new Error(`[FIBERS_LOG] Using ${fibersMethod}.`).stack;
103103

104104
if (

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fibers",
3-
"version": "5.0.2-6",
3+
"version": "5.0.2-7",
44
"description": "Cooperative multi-tasking for Javascript",
55
"keywords": [
66
"fiber",

0 commit comments

Comments
 (0)