Skip to content

Commit

Permalink
fixup! feat(ses): add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
leotm authored and naugtur committed Apr 30, 2024
1 parent 6c4827a commit 1079bdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ses/src/tame-symbol-constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const tameSymbolConstructor = () => {
const OriginalSymbol = Symbol;
const SymbolPrototype = OriginalSymbol.prototype;

// Bypass Hermes bug, fixed in: https://github.com/facebook/hermes/commit/00f18c89c720e1c34592bb85a1a8d311e6e99599
// Increase JS spec fidelity by no longer defining SharedSymbol as an object literal short-hand method
const SharedSymbol = functionBind(Symbol, undefined);

defineProperties(SymbolPrototype, {
Expand Down

0 comments on commit 1079bdc

Please sign in to comment.