-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Typed arrays support #2388
Typed arrays support #2388
Changes from 1 commit
91b03ff
a25ff13
45c2f35
2d81bdc
bcf59d7
bc32981
2372629
909120e
5316c47
0aa0f5e
39ef5a9
36b4e25
40f93f7
d98dcc0
c0e2f73
09d37b6
a7ed2c2
b95e462
53ea0ec
98d2407
01a8443
c15722f
a2fb88b
f0395b5
9b83826
6dd2f69
306986d
d4cb0c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,10 @@ | |
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
|
||
'use strict'; | ||
|
||
var Lib = require('../../lib'); | ||
|
||
module.exports = function(trace) { | ||
return !Array.isArray(trace.z[0]); | ||
return !Lib.isArrayOrTypedArray(trace.z[0]); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it work to provide a 2D array as an array of typed arrays? Not that I want to encourage this, far better for us to provide a solution based on a single typed array... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Should have looked at the next commit before commenting 🏆 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, arrays of typed arrays for should work after this PR. |
||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again to my question about missing data in typed arrays... here can't we just let these typed arrays drop into the for loop as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done and 🔒 in 306986d