docs: Minor typos
MODIFY
packages/ses/README.md
packages/ses/README.md
@@ -75,7 +75,7 @@ The set of accessible objects includes but is not limited to: `globalThis`,
The `lockdown()` function also **tames** some objects including regular
expressions, locale methods, and errors.
-A tamed `RexExp` does not have the deprecated `compile` method.
+A tamed `RegExp` does not have the deprecated `compile` method.
A tamed error does not have a V8 `stack`, but the `console` can still see the
stack.
Lockdown replaces locale methods like `String.prototype.localeCompare` with
@@ -295,7 +295,7 @@ implemented by an alias like `"./utility/index.js"`, the `importHook` may
follow redirects, symbolic links, or search for candidates using its own logic
and return a module that has a different "response specifier" than the original
"request specifier".
-The `importHook` may return an "alias" objeect with `record`, `compartment`,
+The `importHook` may return an "alias" object with `record`, `compartment`,
and `module` properties.
- `record` must be a static module record, either a third-party module record

MODIFY
packages/ses/src/enablements.js
packages/ses/src/enablements.js
@@ -171,7 +171,7 @@ export const severeEnablements = {
*
* In addition, code doing inheritance manually will often override
* the `constructor` property on the new prototype by assignment. We've
- * see this several times.
+ * seen this several times.
*
* The cost of enabling all these is that they create a miserable debugging
* experience. https://github.com/Agoric/agoric-sdk/issues/2324 explains

MODIFY
packages/ses/src/make-evaluate-factory.js
packages/ses/src/make-evaluate-factory.js
@@ -8,7 +8,7 @@ import { FERAL_FUNCTION, arrayJoin } from './commons.js';
* @param {Array<string>} constants
*/
function buildOptimizer(constants) {
- // No need to build an oprimizer when there are no constants.
+ // No need to build an optimizer when there are no constants.
if (constants.length === 0) return '';
// Use 'this' to avoid going through the scope proxy, which is unecessary
// since the optimizer only needs references to the safe global.
@@ -44,7 +44,7 @@ export const makeEvaluateFactory = (constants = []) => {
// - everything in the 'optimizer' string is looked up in the proxy
// (including an 'arguments[0]', which points at the Proxy).
// - keywords like 'function' which are reserved keywords, and cannot be
- // used as a variables, so they is not part to the optimizer.
+ // used as a variable, so they are not part of the optimizer.
// - when 'eval' is looked up in the proxy, and it's the first time it is
// looked up after allowNextEvalToBeUnsafe is turned on, the proxy returns
// the powerful, unsafe eval intrinsic, and flips allowNextEvalToBeUnsafe

MODIFY
packages/ses/src/scope-handler.js
packages/ses/src/scope-handler.js
@@ -17,7 +17,7 @@ const { details: d, quote: q } = assert;
/**
* alwaysThrowHandler
- * This is an object that throws if any propery is called. It's used as
+ * This is an object that throws if any property is called. It's used as
* a proxy handler which throws on any trap called.
* It's made from a proxy with a get trap that throws. It's safe to
* create one and share it between all scopeHandlers.

MODIFY
packages/ses/src/transforms.js
packages/ses/src/transforms.js
@@ -112,7 +112,7 @@ const importPattern = new RegExp('(^|[^.])\\bimport(\\s*(?:\\(|/[/*]))', 'g');
* The proposed dynamic import expression is the only syntax currently
* proposed, that can appear in non-module JavaScript code, that
* enables direct access to the outside world that cannot be
- * surpressed or intercepted without parsing and rewriting. Instead,
+ * suppressed or intercepted without parsing and rewriting. Instead,
* this shim conservatively rejects any source text that seems to
* contain such an expression. To do this safely without parsing, we
* must also reject some valid programs, i.e., those containing

MODIFY
packages/ses/test/test-evaluate.js
packages/ses/test/test-evaluate.js
@@ -29,7 +29,7 @@ test('performEval - sloppyGlobalsMode', t => {
t.is(
performEval('abc', globalObject, {}, options),
undefined,
- 'endowments do not persit',
+ 'endowments do not persist',
);
t.is(
performEval('def = abc + 333', globalObject, endowments, options),

MODIFY
packages/test262-runner/README.md
packages/test262-runner/README.md
# test262-runner
-Run ECMAScript compliace tests on `node` using native ESM support.
+Run ECMAScript compliance tests on `node` using native ESM support.
## Test262 subset
@@ -15,4 +15,3 @@ This technique is the same used by all major JavaScript engines:
- https://github.com/v8/v8/tree/master/test/test262
- https://github.com/mozilla/gecko-dev/tree/master/js/src/tests/test262
etc.
-

docs: Minor typos (#851)