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
I'm getting an error when I try to "call" the get/set properties of the result of Object.getOwnPropertyDescriptor() when a wrapped Java object is the target.
org.mozilla.v17.javascript.EvaluatorException: Can't find method org.mozilla.v17.javascript.Callable.call(object,string). (exp#69)
at org.mozilla.v17.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:77)
at org.mozilla.v17.javascript.Context.reportRuntimeError(Context.java:971)
at org.mozilla.v17.javascript.Context.reportRuntimeError(Context.java:1026)
at org.mozilla.v17.javascript.Context.reportRuntimeError1(Context.java:989)
at org.mozilla.v17.javascript.NativeJavaMethod.call(NativeJavaMethod.java:145)
In Chromes JS engine, the getter/setter properties of the object returned from Object.getOwnPropertyDescriptor() are functions which can then be executed using "call" and "apply". This is not true for Rhino because the get and set functions are MemberBox objects and not FunctionObjects.
The text was updated successfully, but these errors were encountered:
I'm getting an error when I try to "call" the get/set properties of the result of Object.getOwnPropertyDescriptor() when a wrapped Java object is the target.
org.mozilla.v17.javascript.EvaluatorException: Can't find method org.mozilla.v17.javascript.Callable.call(object,string). (exp#69)
at org.mozilla.v17.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:77)
at org.mozilla.v17.javascript.Context.reportRuntimeError(Context.java:971)
at org.mozilla.v17.javascript.Context.reportRuntimeError(Context.java:1026)
at org.mozilla.v17.javascript.Context.reportRuntimeError1(Context.java:989)
at org.mozilla.v17.javascript.NativeJavaMethod.call(NativeJavaMethod.java:145)
In Chromes JS engine, the getter/setter properties of the object returned from Object.getOwnPropertyDescriptor() are functions which can then be executed using "call" and "apply". This is not true for Rhino because the get and set functions are MemberBox objects and not FunctionObjects.
The text was updated successfully, but these errors were encountered: