Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
asan:
strategy:
matrix:
version: [18, 20, 22, 24, 25]
version: [18, 20, 22, 24, 25, 26]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -23,7 +23,7 @@ jobs:
valgrind:
strategy:
matrix:
version: [18, 20, 22, 24, 25]
version: [18, 20, 22, 24, 25, 26]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
11 changes: 10 additions & 1 deletion bindings/profilers/wall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ class PersistentContextPtr : public node::ObjectWrap {
}
};

inline void* GetAlignedPointerFromInternalField(Object* object, int index) {
#if NODE_MAJOR_VERSION >= 26
return object->GetAlignedPointerFromInternalField(
index, kEmbedderDataTypeTagDefault);
#else
return object->GetAlignedPointerFromInternalField(index);
#endif
}

// Maximum number of rounds in the GetV8ToEpochOffset
static constexpr int MAX_EPOCH_OFFSET_ATTEMPTS = 20;

Expand Down Expand Up @@ -1274,7 +1283,7 @@ ContextPtr WallProfiler::GetContextPtr(Isolate* isolate) {
auto wrapObj = reinterpret_cast<Object*>(wrapValue);
if (wrapObj->InternalFieldCount() > 0) {
return static_cast<PersistentContextPtr*>(
wrapObj->GetAlignedPointerFromInternalField(0))
GetAlignedPointerFromInternalField(wrapObj, 0))
->Get();
}
}
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"gts": "^7.0.0",
"js-green-licenses": "^4.0.0",
"mocha": "^11.7.5",
"nan": "^2.26.2",
"nan": "^2.27.0",
"nyc": "^18.0.0",
"semver": "^7.8.0",
"sinon": "^22.0.0",
Expand Down
Loading