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
Now that 27b5630 and #1129 are merged, the original Nashorn error of Java::JavaLang::AssertionError (unknown call type GET:METHOD|PROPERTY|ELEMENT:call(Object)Object@jdk.nashorn.internal.scripts.Script$Recompilation$3$\^eval\_/0x0000000800765040) from #1128 has been addressed, and the polyfill can be loaded successfully. However, when I try to use a function such as endsWith, I get this new error:
Java::JavaxScript::ScriptException (TypeError: Can not invoke method [jdk.dynalink.beans.SimpleDynamicMethod boolean java.lang.String.endsWith(String)] with the passed arguments; they do not match any of its method signatures. in <eval> at line number 1)
The problem originates with the fact that Nashorn implementation of endsWith can't be called with the endPosition parameter:
Now that 27b5630 and #1129 are merged, the original Nashorn error of
Java::JavaLang::AssertionError (unknown call type GET:METHOD|PROPERTY|ELEMENT:call(Object)Object@jdk.nashorn.internal.scripts.Script$Recompilation$3$\^eval\_/0x0000000800765040)
from #1128 has been addressed, and the polyfill can be loaded successfully. However, when I try to use a function such asendsWith
, I get this new error:Java::JavaxScript::ScriptException (TypeError: Can not invoke method [jdk.dynalink.beans.SimpleDynamicMethod boolean java.lang.String.endsWith(String)] with the passed arguments; they do not match any of its method signatures. in <eval> at line number 1)
The problem originates with the fact that Nashorn implementation of
endsWith
can't be called with theendPosition
parameter:In order to correct this, the return value from uncurryThis should be falsey here:
https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/es.string.ends-with.js#L13
Then the native implementation will be bypassed during this check:
https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/es.string.ends-with.js#L34
The text was updated successfully, but these errors were encountered: