Skip to content

Commit 1dabdbf

Browse files
sadikkuzuruyadorno
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 e0efd9a commit 1dabdbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/node_messaging.h

+1-1
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

+1-1
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)