Skip to content

Commit

Permalink
fix: tolerate endo pre and post #822
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jul 13, 2021
1 parent 467eb9f commit e913950
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/import-bundle/test/test-compartment-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ function check(t, c, odometer, n) {
const Con = Object.getPrototypeOf(c.globalThis.Compartment).constructor;
t.throws(
() => new Con(),
{ message: /Not available/ },
{
// Temporarily tolerate Endo behavior before and after
// https://github.com/endojs/endo/pull/822
// TODO Simplify once depending on SES post #822
message: /Not available|Function\.prototype\.constructor is not a valid constructor\./,
},
`${n} .constructor is tamed`,
);

Expand Down

0 comments on commit e913950

Please sign in to comment.