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.
  • Loading branch information
boneskull committed Jan 18, 2024
1 parent aa82c91 commit ff10068
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
@@ -1,9 +1,9 @@
/* eslint-disable no-restricted-globals */
/**
* @file Exports {@code whitelist}, 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 ff10068

Please sign in to comment.