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 <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Mestery <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.