-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getAllIds on Float32Array fails #449
Comments
szegedi
added a commit
to szegedi/rhino
that referenced
this issue
Jun 17, 2018
szegedi
added a commit
to szegedi/rhino
that referenced
this issue
Jun 17, 2018
It seems to me that the below change fixes it. Not sure why these values were 10 and 11 in the first place, though. A less brittle way of specifying them, counting from superclass --- a/src/org/mozilla/javascript/typedarrays/NativeTypedArrayView.java
+++ b/src/org/mozilla/javascript/typedarrays/NativeTypedArrayView.java
@@ -439,8 +439,8 @@ public abstract class NativeTypedArrayView<T>
* These must not conflict with ids in the parent since we delegate there for property dispatching.
*/
private static final int
- Id_length = 10,
- Id_BYTES_PER_ELEMENT = 11,
+ Id_length = 4,
+ Id_BYTES_PER_ELEMENT = 5,
MAX_INSTANCE_ID = Id_BYTES_PER_ELEMENT;
// #/string_id_map# |
szegedi
added a commit
to szegedi/rhino
that referenced
this issue
Jun 17, 2018
szegedi
added a commit
to szegedi/rhino
that referenced
this issue
Jun 17, 2018
szegedi
added a commit
to szegedi/rhino
that referenced
this issue
Jun 17, 2018
szegedi
added a commit
to szegedi/rhino
that referenced
this issue
Jun 17, 2018
szegedi
added a commit
to szegedi/rhino
that referenced
this issue
Jun 17, 2018
szegedi
added a commit
to szegedi/rhino
that referenced
this issue
Jul 1, 2018
szegedi
added a commit
to szegedi/rhino
that referenced
this issue
Jul 1, 2018
szegedi
added a commit
to szegedi/rhino
that referenced
this issue
Jul 1, 2018
gbrail
pushed a commit
that referenced
this issue
Jul 12, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to query all IDs on a
Float32Array
throws anIllegalArgumentException
. The issue seems to be that there is a gap of undefined instance IDs betweenFloat32Array
and its superclassNativeTypedArrayView
.Here's a little test that illustrates the issue:
It results in:
The issue might be similar to #437.
The text was updated successfully, but these errors were encountered: