Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ OSTYPE := $(shell uname -s | tr '[:upper:]' '[:lower:]')
ifeq ($(findstring os/390,$OSTYPE),os/390)
OSTYPE ?= os390
endif
ARCHTYPE := $(shell uname -m | tr '[:upper:]' '[:lower:]')
ARCHETYPE := $(shell uname -m | tr '[:upper:]' '[:lower:]')
COVTESTS ?= test-cov
COV_SKIP_TESTS ?= core_line_numbers.js,testFinalizer.js,test_function/test.js
GTEST_FILTER ?= *
Expand Down Expand Up @@ -1114,9 +1114,9 @@ ifneq ($(OSTYPE),darwin)
$(warning Invalid OSTYPE)
$(error OSTYPE should be `darwin` currently is $(OSTYPE))
endif
ifneq ($(ARCHTYPE),arm64)
$(warning Invalid ARCHTYPE)
$(error ARCHTYPE should be `arm64` currently is $(ARCHTYPE))
ifneq ($(ARCHETYPE),arm64)
$(warning Invalid ARCHETYPE)
$(error ARCHETYPE should be `arm64` currently is $(ARCHETYPE))
endif
$(RM) -r $(MACOSOUTDIR)
mkdir -p $(MACOSOUTDIR)/installer/productbuild
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ issue.

If you do not receive an acknowledgement of your report within 6 business
days, or if you cannot find a private security contact for the project, you
may escalate to the OpenJS Foundation CNA at `security@lists.openjsf.org`.
may escalate to the OpenJS Foundation CAN at `security@lists.openjsf.org`.

If the project acknowledges your report but does not provide any further
response or engagement within 14 days, escalation is also appropriate.
Expand Down
12 changes: 6 additions & 6 deletions benchmark/diagnostics_channel/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ function main({ apm, connections, duration, type, len, chunks, chunkedEnc }) {
function none() {}

function patch() {
const als = new AsyncLocalStorage();
const also = new AsyncLocalStorage();
const times = [];

const { emit } = http.Server.prototype;
function wrappedEmit(...args) {
const [name, req, res] = args;
if (name === 'request') {
als.enterWith({
also.enterWith({
url: req.url,
start: process.hrtime.bigint(),
});

res.on('finish', () => {
times.push({
...als.getStore(),
...also.getStore(),
statusCode: res.statusCode,
end: process.hrtime.bigint(),
});
Expand All @@ -65,22 +65,22 @@ function patch() {
}

function diagnostics_channel() {
const als = new AsyncLocalStorage();
const also = new AsyncLocalStorage();
const times = [];

const start = dc.channel('http.server.request.start');
const finish = dc.channel('http.server.response.finish');

function onStart(req) {
als.enterWith({
also.enterWith({
url: req.url,
start: process.hrtime.bigint(),
});
}

function onFinish(res) {
times.push({
...als.getStore(),
...also.getStore(),
statusCode: res.statusCode,
end: process.hrtime.bigint(),
});
Expand Down
10 changes: 5 additions & 5 deletions benchmark/es/error-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const bench = common.createBenchmark(main, {
n: [1e5],
});

function runN(n, modPath) {
function run(n, modPath) {
delete require.cache[modPath];
const mod = require(modPath);
bench.start();
Expand All @@ -28,23 +28,23 @@ function main({ n, method }) {
switch (method) {
case 'without-sourcemap':
process.setSourceMapsEnabled(false);
runN(n, modPath);
run(n, modPath);
break;
case 'sourcemap':
process.setSourceMapsEnabled(true);
runN(n, modPath);
run(n, modPath);
break;
case 'node-modules-without-sourcemap':
Module.setSourceMapsSupport(true, {
nodeModules: false,
});
runN(n, nodeModulePath);
run(n, nodeModulePath);
break;
case 'node-modules-sourcemap':
Module.setSourceMapsSupport(true, {
nodeModules: true,
});
runN(n, nodeModulePath);
run(n, nodeModulePath);
break;
default:
throw new Error(`Unexpected method "${method}"`);
Expand Down
4 changes: 2 additions & 2 deletions benchmark/fixtures/alice.html
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ <h3 align="Center">A Caucus-Race and a Long Tale</h3>
and left off when they liked, so that it was not easy to know
when the race was over. However, when they had been running half
an hour or so, and were quite dry again, the Dodo suddenly called
out 'The race is over!' and they all crowded round it, panting,
out 'The race is over!' and they all crowded round it, painting,
and asking, 'But who has won?'</p>

<p>This question the Dodo could not answer without a great deal
Expand Down Expand Up @@ -1227,7 +1227,7 @@ <h3 align="Center">The Rabbit Sends in a Little Bill</h3>
again; then the puppy began a series of short charges at the
stick, running a very little way forwards each time and a long
way back, and barking hoarsely all the while, till at last it sat
down a good way off, panting, with its tongue hanging out of its
down a good way off, painting, with its tongue hanging out of its
mouth, and its great eyes half shut.</p>

<p>This seemed to Alice a good opportunity for making her escape;
Expand Down
2 changes: 1 addition & 1 deletion benchmark/fixtures/coverage-many-branches.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CoveredClass {
}
}

// Excercise coverage of functions:
// Exercise coverage of functions:
function add(x, y) {
const mt = new CoveredClass(x, y);
return mt.add();
Expand Down
2 changes: 1 addition & 1 deletion benchmark/misc/startup-cli-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const path = require('path');
// checked into the source code. We use --version because the output
// tends to be minimal and fewer operations are done to generate
// these so that the startup cost is still dominated by a more
// indispensible part of the CLI.
// indispensable part of the CLI.
// NOTE: not all tools are present in tarball hence need to filter
const availableCli = [
'tools/eslint/node_modules/eslint/bin/eslint.js',
Expand Down
2 changes: 1 addition & 1 deletion benchmark/readline/readline-iterable.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
const loremIpsum = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Dui accumsan sit amet nulla facilisi morbi tempus iaculis urna.
Eget dolor morbi non arcu risus quis varius quam quisque.
Eget dolor morbi non arcu risus quis various quam quisque.
Lacus viverra vitae congue eu consequat ac felis donec.
Amet porttitor eget dolor morbi non arcu.
Velit ut tortor pretium viverra suspendisse.
Expand Down
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
}],
],
}],
# The defines bellow must include all things from the external_v8_defines
# The defines below must include all things from the external_v8_defines
# list in v8/BUILD.gn.
['v8_enable_v8_checks == 1', {
'defines': ['V8_ENABLE_CHECKS'],
Expand Down
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ART/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace ART {

using art_version_t = uint32_t;

} // Namesapce ART
} // Namespace ART
} // Namespace LIEF

#endif
8 changes: 4 additions & 4 deletions deps/LIEF/include/LIEF/Abstract/Relocation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,22 @@ class LIEF_API Relocation : public Object {
void accept(Visitor& visitor) const override;


/// Comparaison based on the Relocation's **address**
/// Comparison based on the Relocation's **address**
virtual bool operator<(const Relocation& rhs) const {
return address() < rhs.address();
}

/// Comparaison based on the Relocation's **address**
/// Comparison based on the Relocation's **address**
virtual bool operator<=(const Relocation& rhs) const {
return !(address() > rhs.address());
}

/// Comparaison based on the Relocation's **address**
/// Comparison based on the Relocation's **address**
virtual bool operator>(const Relocation& rhs) const {
return address() > rhs.address();
}

/// Comparaison based on the Relocation's **address**
/// Comparison based on the Relocation's **address**
virtual bool operator>=(const Relocation& rhs) const {
return !(address() < rhs.address());
}
Expand Down
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/COFF/Section.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class LIEF_API Section : public LIEF::Section {
return symbols_;
}

/// Return comdat infomration (only if the section has the
/// Return comdat information (only if the section has the
/// CHARACTERISTICS::LNK_COMDAT characteristic)
optional<ComdatInfo> comdat_info() const;

Expand Down
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/DEX/Header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class LIEF_API Header : public Object {
/// Size of this header. It should be 0x70
uint32_t header_size() const;

/// File endianess of the file
/// File endianness of the file
uint32_t endian_tag() const;

/// Offset from the start of the file to the map list (see: DEX::MapList)
Expand Down
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/DWARF/editor/Variable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class LIEF_API Variable {
Variable(std::unique_ptr<details::Variable> impl);

/// Set the global address of this variable. Setting this address is only
/// revelant in the case of a static global variable. For stack variable, you
/// relevant in the case of a static global variable. For stack variable, you
/// should use set_stack_offset.
///
/// This function set the `DW_AT_location` attribute
Expand Down
12 changes: 6 additions & 6 deletions deps/LIEF/include/LIEF/DyldSharedCache/DyldSharedCache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,21 +160,21 @@ class LIEF_API DyldSharedCache {
/// True if the subcaches are associated with this cache
bool has_subcaches() const;

/// Return an interator over the libraries embedded in this dyld shared cache.
/// Return an iterator over the libraries embedded in this dyld shared cache.
///
/// This iterator implements the *random access* trait. Thus, one can use
/// iterator_range::size, iterator_range::at, iterator_range::operator[] to a
/// access Dylib at an arbitrary index:
///
/// ```cpp
/// auto libraries = cache.libaries();
/// auto libraries = cache.libraries();
/// for (size_t i = 0; i < libraries.size(); ++i) {
/// std::string path = libaries[i]->path();
/// std::string path = libraries[i]->path();
/// }
/// ```
dylib_iterator libraries() const;

/// Return an interator over the mapping information of this dyld shared cache.
/// Return an iterator over the mapping information of this dyld shared cache.
///
/// This iterator implements the *random access* trait. Thus, one can use
/// iterator_range::size, iterator_range::at, iterator_range::operator[] to
Expand All @@ -188,7 +188,7 @@ class LIEF_API DyldSharedCache {
/// ```
mapping_info_iterator mapping_info() const;

/// Return an interator over the subcaches associated with this (main) dyld shared
/// Return an iterator over the subcaches associated with this (main) dyld shared
/// cache.
///
/// This iterator implements the *random access* trait. Thus, one can use
Expand Down Expand Up @@ -266,7 +266,7 @@ class LIEF_API DyldSharedCache {
///
/// In the case where multiple architectures are
/// available in the \p path directory, the \p arch parameter can be used to
/// define which architecture should be prefered.
/// define which architecture should be preferred.
///
/// **Example:**
///
Expand Down
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ELF/DynamicEntryArray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class LIEF_API DynamicEntryArray : public DynamicEntry {
/// Remove the given function
DynamicEntryArray& remove(uint64_t function);

/// Number of function registred in this array
/// Number of function registered in this array
size_t size() const {
return array_.size();
}
Expand Down
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ELF/GnuHash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class LIEF_API GnuHash : public Object {
};


} // namepsace ELF
} // namespace ELF
} // namespace LIEF

#endif
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ELF/Header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class LIEF_API Header : public Object {
FENIXOS = 16, /// FenixOS
CLOUDABI = 17, /// Nuxi CloudABI
C6000_ELFABI = 64, /// Bare-metal TMS320C6000
AMDGPU_HSA = 64, /// AMD HSA runtime
AMDGPU_HSA = 64, /// AMD HAS runtime
C6000_LINUX = 65, /// Linux TMS320C6000
ARM = 97, /// ARM
STANDALONE = 255 /// Standalone (embedded) application
Expand Down
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ELF/Note.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,6 @@ class LIEF_API Note : public Object {
LIEF_API const char* to_string(Note::TYPE type);


} // namepsace ELF
} // namespace ELF
} // namespace LIEF
#endif
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ELF/NoteDetails/AndroidIdent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class LIEF_API AndroidIdent : public Note {
};


} // namepsace ELF
} // namespace ELF
} // namespace LIEF

#endif
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ELF/NoteDetails/NoteAbi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class LIEF_API NoteAbi : public Note {

LIEF_API const char* to_string(NoteAbi::ABI abi);

} // namepsace ELF
} // namespace ELF
} // namespace LIEF

#endif
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ELF/NoteDetails/NoteGnuProperty.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class LIEF_API NoteGnuProperty : public Note {

LIEF_API const char* to_string(NoteGnuProperty::Property::TYPE type);

} // namepsace ELF
} // namespace ELF
} // namespace LIEF

#endif
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ELF/NoteDetails/QNXStack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class LIEF_API QNXStack : public Note {
};


} // namepsace ELF
} // namespace ELF
} // namespace LIEF

#endif
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ELF/NoteDetails/core/CoreAuxv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class LIEF_API CoreAuxv : public Note {

LIEF_API const char* to_string(CoreAuxv::TYPE type);

} // namepsace ELF
} // namespace ELF
} // namespace LIEF

#endif
2 changes: 1 addition & 1 deletion deps/LIEF/include/LIEF/ELF/NoteDetails/core/CoreFile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class LIEF_API CoreFile : public Note {
Header::CLASS class_ = Header::CLASS::NONE;
};

} // namepsace ELF
} // namespace ELF
} // namespace LIEF

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class LIEF_API CorePrPsInfo : public Note {
Header::CLASS class_ = Header::CLASS::NONE;
};

} // namepsace ELF
} // namespace ELF
} // namespace LIEF

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ LIEF_API const char* to_string(CorePrStatus::Registers::X86_64 e);
LIEF_API const char* to_string(CorePrStatus::Registers::ARM e);
LIEF_API const char* to_string(CorePrStatus::Registers::AARCH64 e);

} // namepsace ELF
} // namespace ELF
} // namespace LIEF

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class LIEF_API CoreSigInfo : public Note {
protected:
using Note::Note;
};
} // namepsace ELF
} // namespace ELF
} // namespace LIEF

#endif
Loading
Loading