Skip to content

Commit

Permalink
feat(ses): export Permits
Browse files Browse the repository at this point in the history
This exports the entirety of `src/permits.js` as the `Permits` object via the `tools` export.

We are using this information in `lavamoat-tofu` for SES-compat detection, and we would like to keep it up-to-date with SES.

There are other ways we could accomplish this, but exporting it is the easiest way for `lavamoat-tofu` to consume it.

# Conflicts:
#	packages/ses/src/permits.js
  • Loading branch information
boneskull committed Feb 28, 2025
1 parent f71479f commit 1ca9aba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ses/src/permits.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { arrayPush, arrayForEach } from './commons.js';
/** @import {GenericErrorConstructor} from '../types.js' */

/**
* @module Exports {@code permits}, a recursively defined
* JSON record enumerating all intrinsics and their properties
* according to ECMA specs.
* Exports {@link permitted}, a recursively defined JSON record enumerating all
* intrinsics and their properties according to ECMA specs.
*
* @module
* @author JF Paradis
* @author Mark S. Miller
*/
Expand Down
2 changes: 2 additions & 0 deletions packages/ses/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ export const scopeTerminators = freeze({
strictScopeTerminator,
createSloppyGlobalsScopeTerminator,
});

export * as Permits from './src/permits.js';

0 comments on commit 1ca9aba

Please sign in to comment.