Skip to content

Commit

Permalink
fix: adapt to varying promise marking techniques
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Sep 28, 2023
1 parent 0d5800a commit cdca031
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/SwingSet/src/lib/kmarshal.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ const makeStringStandinPromise = kref => {
};

const makeAccessorStandinPromise = kref => {
// TODO This Bizarro world hack is only for the version of Endo that
// agoric-sdk currently depends on, and is already inconsistent with
// the "current" endo. Once agoric-sdk depends only on the next endo,
// we should delete this code, and rename `makeStringStandinPromise`
// above to `makeStandinPromise`.
//
// Bizarro World hack for attaching a string property to a Promise, courtesy
// of MarkM. Even though the @@toStringTag property nominally *is* a
// string, some unfortunate stuff in our hardened JS safety checks blows up
Expand Down

0 comments on commit cdca031

Please sign in to comment.