This is an automated email from the ASF dual-hosted git repository. jtulach pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-html4j.git
The following commit(s) were added to refs/heads/master by this push: new 21a9551 Don't convert primitive types 21a9551 is described below commit 21a9551205fd07fe1c58e2c4a9acc9286efc9218 Author: Jaroslav Tulach <jaroslav.tul...@oracle.com> AuthorDate: Fri Feb 2 18:47:45 2018 +0100 Don't convert primitive types --- boot/src/test/java/org/netbeans/html/boot/impl/JsUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot/src/test/java/org/netbeans/html/boot/impl/JsUtils.java b/boot/src/test/java/org/netbeans/html/boot/impl/JsUtils.java index 47e8fc6..1a732f1 100644 --- a/boot/src/test/java/org/netbeans/html/boot/impl/JsUtils.java +++ b/boot/src/test/java/org/netbeans/html/boot/impl/JsUtils.java @@ -45,6 +45,9 @@ final class JsUtils { } static java.lang.Object toJava(ScriptEngine eng, java.lang.Object js) { + if (js instanceof Boolean || js instanceof String || js instanceof Number) { + return js; + } try { Number len = (Number) ((Invocable) eng).invokeFunction("checkArray", js, null); if (len != null && len.intValue() >= 0) { -- To stop receiving notification emails like this one, please contact jtul...@apache.org. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists