Skip to content

Commit

Permalink
fix(ses): ses depends on env-options
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jun 1, 2023
1 parent d1d7c9b commit ca3ffd1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 119 deletions.
Empty file added packages/env-options/NEWS.md
Empty file.
3 changes: 3 additions & 0 deletions packages/ses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
"test": "tsd && ava",
"test:platform-compatibility": "node test/package/test.cjs"
},
"dependencies": {
"@endo/env-options": "^0.1.0"
},
"devDependencies": {
"@endo/compartment-mapper": "^0.8.4",
"@endo/static-module-record": "^0.7.19",
Expand Down
117 changes: 0 additions & 117 deletions packages/ses/src/environment-options.js

This file was deleted.

3 changes: 1 addition & 2 deletions packages/ses/src/lockdown-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

// @ts-check

import { makeEnvironmentCaptor } from '@endo/env-options';
import {
FERAL_FUNCTION,
FERAL_EVAL,
Expand Down Expand Up @@ -49,7 +50,6 @@ import { tameDomains } from './tame-domains.js';
import { tameConsole } from './error/tame-console.js';
import tameErrorConstructor from './error/tame-error-constructor.js';
import { assert, makeAssert } from './error/assert.js';
import { makeEnvironmentCaptor } from './environment-options.js';
import { getAnonymousIntrinsics } from './get-anonymous-intrinsics.js';
import { makeCompartmentConstructor } from './compartment-shim.js';
import { tameHarden } from './tame-harden.js';
Expand Down Expand Up @@ -297,7 +297,6 @@ export const repairIntrinsics = (options = {}) => {
optGetStackString = intrinsics['%InitialGetStackString%'];
}
const consoleRecord = tameConsole(
// @ts-expect-error tameConsole does its own input validation
consoleTaming,
errorTrapping,
unhandledRejectionTrapping,
Expand Down

0 comments on commit ca3ffd1

Please sign in to comment.