Skip to content

Commit

Permalink
src,test: fix typos
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
sadikkuzu authored and juanarbol committed Oct 11, 2022
1 parent 1924d89 commit 1635503
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/node_messaging.h
Expand Up @@ -316,7 +316,7 @@ class MessagePort : public HandleWrap {
};

// Provide a base class from which JS classes that should be transferable or
// cloneable by postMesssage() can inherit.
// cloneable by postMessage() can inherit.
// See e.g. FileHandle in internal/fs/promises.js for an example.
class JSTransferable : public BaseObject {
public:
Expand Down
2 changes: 1 addition & 1 deletion test/es-module/test-esm-cjs-exports.js
Expand Up @@ -17,7 +17,7 @@ describe('ESM: importing CJS', { concurrency: true }, () => {
assert.strictEqual(stdout, 'ok\n');
});

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

Expand Down

0 comments on commit 1635503

Please sign in to comment.