Skip to content

Commit 0e67128

Browse files
sadikkuzudanielleadams
authored andcommitted
src,test: fix typos
* src: fix typo in `src/node_messaging.h` (`postMesssage` -> `postMessage`). * test/es-module: fix typo in `test-cjs-exports.js` (`eror` -> `error`). PR-URL: #44110 Reviewed-By: Feng Yu <F3n67u@outlook.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 0de278c commit 0e67128

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/node_messaging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class MessagePort : public HandleWrap {
316316
};
317317

318318
// Provide a base class from which JS classes that should be transferable or
319-
// cloneable by postMesssage() can inherit.
319+
// cloneable by postMessage() can inherit.
320320
// See e.g. FileHandle in internal/fs/promises.js for an example.
321321
class JSTransferable : public BaseObject {
322322
public:

test/es-module/test-esm-cjs-exports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('ESM: importing CJS', { concurrency: true }, () => {
1717
assert.strictEqual(stdout, 'ok\n');
1818
});
1919

20-
it('should eror on invalid CJS exports', async () => {
20+
it('should error on invalid CJS exports', async () => {
2121
const invalidEntry = fixtures.path('/es-modules/cjs-exports-invalid.mjs');
2222
const { code, signal, stderr } = await spawnPromisified(execPath, [invalidEntry]);
2323

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy