-
Notifications
You must be signed in to change notification settings - Fork 249
Closed
Description
Steps to Reproduce
xst -e 'const store = new Map([[1n, "abc"]]); print(store.get(1n))'- See
undefined
Expected behavior
print abc
Other information
I thought maybe a Map's key had to be an Object, but that's WeakMap. "A Map's keys can be any value (including functions, objects, or any primitive)." -- MDN
I checked the XS conformance docs and didn't find anything about this. That suggests test262 doesn't cover this. odd, that.
node and browser consoles both show...
> const store = new Map([[1n, "abc"]]); store.get(1n)
'abc'
context:
As part of Agoric/agoric-sdk#2486 , I'm running zoe/test/unitTests/test-fakePriceAuthority.js and the assertion at store.js line 35 is failing.
Build environment: linux
Target device: xst, xsnap, agoric
Metadata
Metadata
Assignees
Labels
No labels