[Bug 1198] JSObject is not valid on Javascript side
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Wed Oct 31 14:10:07 PDT 2012
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1198
--- Comment #3 from Deepak Bhole <dbhole at redhat.com> ---
Hi,
I took a second look at this issue. As I understand it, JS is calling
testFunction() in the applet code which in turn creates a JSObject representing
"new Object()" that resides in the Java VM.
The code is then trying to set "code" in the newly created JSObject. However
this JSObject is just a proxy for the Object instance created by "new
Object()". And The Object class does not have a member .code
I am not sure why the Oracle VM works here, but I don't see why it should.
Regardless of whether JS is strong or weakly typed, the JSObject in question
here represents an Object in a VM which is strongly typed. Attempting to set an
arbitrary property within the Object instance should result in an error.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20121031/4d56bc45/attachment.html
More information about the distro-pkg-dev
mailing list