justjake / quickjs-emscripten

Safely execute untrusted Javascript in your Javascript, and execute synchronous code that uses async functions
https://www.npmjs.com/package/quickjs-emscripten
Other
1.18k stars 94 forks source link

Feature request: return property keys of a JSValue #185

Open Symbitic opened 5 days ago

Symbitic commented 5 days ago

When a JSValue is a JavaScript object, I would like a way to return a list of all the valid properties that could be passed to getProp. This would help with error detection if an expected property isn't there and with iteration.