You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run this with mcconfig -d -m -p lin, I get same? false actual type: undefined:
exportdefaultfunctionmain(){varcanonical=Symbol.for('s');constactual=Symbol.keyFor(canonical);constsame=actual==='s';trace(`same? ${same} actual type: ${typeofactual}\n`);}
Good find. This only happens for symbols created from strings stored internally as XS_STRING_X_KIND -- which is, more or less, strings that are known at build time.
The fix is straightforward. In xsSymbol.c change lines 153 & 154 as follows:
When I run this with
mcconfig -d -m -p lin
, I getsame? false actual type: undefined
:It's very odd, because it's based on the built-ins/Symbol/keyFor/arg-symbol-registry-hit.js test262 test, which passes:
context: I'm struggling with the
Symbol.for('sym1')
test case in test-marshal.js https://github.com/Agoric/SwingSet/blob/master/test/test-marshal.js#L33-L36The text was updated successfully, but these errors were encountered: