7
packages/polyfill/src/openjdk-nashorn-shim.ts
Normal file
7
packages/polyfill/src/openjdk-nashorn-shim.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// fix OpenJDK Nahsorn setPrototypeOf Bug
|
||||
try {
|
||||
Java.type('org.openjdk.nashorn.api.scripting.NashornScriptEngine')
|
||||
Object.setPrototypeOf = ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b })
|
||||
} catch (error) {
|
||||
}
|
||||
export { }
|
||||
Reference in New Issue
Block a user