Results 136 comments of Raphael Nestler

I have the same problem when using the version from https://ga.jspm.io/npm:[email protected]/esm/index.js which has a relative import in the beginning: import{_ as e,Z as t}from"../_/aee98b16.js".

The one from https://cdn.jsdelivr.net/npm/[email protected]/+esm did work though.

Oh I see this is a duplicate of #24

Maybe https://github.com/oracle/graaljs/issues/478 is related?

According to https://github.com/oracle/graaljs/issues/766 and https://github.com/oracle/graaljs/issues/757 I should be able to use `JSON.stringify(Object.fromEntries(Array.from(dataMap)))`, but this results in an exception: ``` ... Caused by: org.graalvm.polyglot.PolyglotException: TypeError: (intermediate value).fromEntries is not a function...

@outofcoffee I think one solution would be to get rid of the nashorn JS altogether and only rely on graaljs without the nashorn-compat property set to get good support for...

> I created a branch (https://github.com/outofcoffee/imposter/tree/spike/graal-js-modern) with a new Graal script engine implementation, without Nashorn compatibility. Unfortunately the results were the same But did the `JSON.stringify(Object.fromEntries(Array.from(dataMap)))` snipped also still raise...

The new `loadAsJson()` works quite nice! See https://github.com/rnestler/imposter-state-minimum-example/commit/962522a508a8cd60bfa7ab8e7b6f225992f53993 Thanks for being so super responsive on this issue! I saw that `loadAsJson()` is already documented in https://docs.imposter.sh/stores/. But maybe it would...

@outofcoffee I tested again with 3.40.0: * With `loadAsJson` everything works as before (https://github.com/rnestler/imposter-state-minimum-example/tree/eef11675c91f0d156ed4f87db3dbc4123c5d0e14) * With just using `load` I get an error ``` imposter | Caused by: org.graalvm.polyglot.PolyglotException: TypeError:...

But it seems that with the improved `js-graal` plugin `Object.fromEntries(Array.from(persons[0]))` works.