tc39 / eshost

A uniform wrapper around a multitude of ECMAScript hosts. CLI: https://github.com/bterlson/eshost-cli
Other
142 stars 36 forks source link

Add $.getGlobal to access properties from other globals #4

Closed anba closed 8 years ago

anba commented 8 years ago

Directly accessing properties from other realms throws TypeError: no access in d8.

bterlson commented 8 years ago

I was mostly done implementing this myself (we probably ran into it doing the same experiments). I was fretting about how I was going to test in JSC and Nashorn. I'll just take this though, I hadn't done readme updates yet. Thanks!

anba commented 8 years ago

(we probably ran into it doing the same experiments)

Yes, I think so, too. :smile:

I was fretting about how I was going to test in JSC and Nashorn.

I've tested the changes with the jsshell, d8, jsc, node and nashorn configurations.

bterlson commented 8 years ago

I tested ch.exe, all good!

Released updated npm packages for es-host-wrapper and eshost, so you can npm install -g this now if you like.

Thanks!