Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Rhino Support #153

Open
MichaelLeeHobbs opened this issue Jun 26, 2019 · 0 comments
Open

Rhino Support #153

MichaelLeeHobbs opened this issue Jun 26, 2019 · 0 comments

Comments

@MichaelLeeHobbs
Copy link

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 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant