Chakracore: WeakMap + HostObject === Sadness (TypeError when using HostObject with WeakMap)

Created on 17 May 2017  路  5Comments  路  Source: chakra-core/ChakraCore

let map = new WeakMap();
map.set(window.location, '1'); // TypeError: WeakMap.prototype.set: 'key' is not an object

source: https://github.com/emberjs/ember.js/issues/15249

cc @jdalton / @nolanlawson

Bug External

Most helpful comment

No worries, I opened an issue on Edge: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12112572/

FWIW you can also easily file an issue using #EdgeBug on Twitter: https://blogs.windows.com/msedgedev/2016/08/11/edgebug-twitter/

All 5 comments

@stefanpenner Assuming your repro should have a string as the second param to set, I repro'd this issue.

let map = new WeakMap();
map.set(window.location, '1'); // TypeError: WeakMap.prototype.set: 'key' is not an object

However, this seems specific to window.location and thus is (at least partly) an Edge issue. Can you please open an Edge issue following the instructions here and post a link here to the issue you open so we can track it?

@tcare: @akroshg Believes this might be an issue that needs to be solved with a combined effort of Edge and Chakra.

@dilijev unfortunately I cannot file an issue, my microsoft account is in some strange state that wont let me log in :(.

I'll try to figure it out later this week...

No worries, I opened an issue on Edge: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12112572/

FWIW you can also easily file an issue using #EdgeBug on Twitter: https://blogs.windows.com/msedgedev/2016/08/11/edgebug-twitter/

Thank you 鉂わ笍 !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jdalton picture jdalton  路  4Comments

tommyZZM picture tommyZZM  路  4Comments

d3x0r picture d3x0r  路  5Comments

ross-weir picture ross-weir  路  4Comments

ljharb picture ljharb  路  4Comments