From c099b30c0a5282a814b84bbfcf3d726ab197f2c9 Mon Sep 17 00:00:00 2001 From: SADIK KUZU Date: Thu, 4 Aug 2022 00:48:09 +0300 Subject: [PATCH] src,test: fix typos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * src: fix typo in `src/node_messaging.h` (`postMesssage` -> `postMessage`). * test/es-module: fix typo in `test-cjs-exports.js` (`eror` -> `error`). PR-URL: https://github.com/nodejs/node/pull/44110 Reviewed-By: Feng Yu Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Antoine du Hamel Reviewed-By: Mestery Reviewed-By: Anna Henningsen Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca --- src/node_messaging.h | 2 +- test/es-module/test-esm-cjs-exports.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_messaging.h b/src/node_messaging.h index 643604e4a99..6b65d4523e6 100644 --- a/src/node_messaging.h +++ b/src/node_messaging.h @@ -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: diff --git a/test/es-module/test-esm-cjs-exports.js b/test/es-module/test-esm-cjs-exports.js index 4a5a9ffceec..4f79d2ce4bc 100644 --- a/test/es-module/test-esm-cjs-exports.js +++ b/test/es-module/test-esm-cjs-exports.js @@ -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]);