You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
At the start, above the line // Composited file - DO NOT EDIT I added
self = this
console = {
assert: (test,msg)=> {
if (!test) logger.error(msg)
}
}
Then I had to change the line global.Response = Response; to if (!global.Response) global.Response = Response;
I have not fully tested the polyfills but many of them I have confirmed working. For example Map and Array.from. I have doubts that Fetch will work and would likely need a custom polyfill for Mirth/Rhino.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
General comment. I was able to get this working in Mirth Connect which runs JS on top of Rhino with the following changes.
Starting with: https://github.com/inexorabletash/polyfill/blob/master/polyfill.js as the base I made the following changes.
At the start, above the line
// Composited file - DO NOT EDIT
I addedThen I had to change the line
global.Response = Response;
toif (!global.Response) global.Response = Response;
I have not fully tested the polyfills but many of them I have confirmed working. For example Map and Array.from. I have doubts that Fetch will work and would likely need a custom polyfill for Mirth/Rhino.
The text was updated successfully, but these errors were encountered: