Skip to content

Commit

Permalink
Remove more uselessness
Browse files Browse the repository at this point in the history
  • Loading branch information
aapoalas committed Jul 10, 2023
1 parent e472d5b commit 20ed043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1018,8 +1018,8 @@ class ExternalStaticOneByteStringResource
class ExternalConstOneByteStringResource
: public v8::String::ExternalOneByteStringResource {
public:
ExternalConstOneByteStringResource(const char* data, int length)
: _data(data), _length(length) {
ExternalConstOneByteStringResource(int length)
: _length(length) {
static_assert(offsetof(ExternalConstOneByteStringResource, _length) == 16,
"ExternalConstOneByteStringResource's length was not at offset 16");
static_assert(sizeof(ExternalConstOneByteStringResource) == 24,
Expand Down

0 comments on commit 20ed043

Please sign in to comment.