Currently Promise is instantiated by calling into JavaScript and manually calling globalThis.Promise (as JavaScript).
https://github.com/alshdavid/ion/blob/main/crates/ion/src/values/js_promise.rs#L60
This is insecure and v8 provides APIs to do this. Replace the implementation with the native V8 Promise constructor
Currently
Promiseis instantiated by calling into JavaScript and manually callingglobalThis.Promise(as JavaScript).https://github.com/alshdavid/ion/blob/main/crates/ion/src/values/js_promise.rs#L60
This is insecure and v8 provides APIs to do this. Replace the implementation with the native V8 Promise constructor