fix(angular.copy): should be able to angular.copy Float32Array#10745
fix(angular.copy): should be able to angular.copy Float32Array#10745DropsOfSerenity wants to merge 1 commit intoangular:masterfrom DropsOfSerenity:master
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/. If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits. Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name. |
|
@googlebot done. |
|
CLAs look good, thanks! |
docs/content/error/ng/cpfad.ngdoc
Outdated
There was a problem hiding this comment.
s/Float32Array/%TypedArray%/g
|
+1 @caitp I was just looking at this too and this is just what I was thinking. @DropsOfSerenity - if you would like to update your PR accordingly that would be great.
|
|
Excellent, I'll get to it, on a side-note I don't know why the CI build keeps failing, all the tests pass over here. |
|
Don't worry. We are having flakiness issues connecting to SauceLabs and BrowserStack when running tests on Travis |
|
Alright thanks for the great advice, I've added a new commit that supports all TypedArrays. I did try using constructor.name instead however that resulted in a memory leak for reasons I don't understand. One other approach I was thinking of could be to use instanceOf, but then I'd have to add a check to make sure the Type being compared to actually exists (in the case of ie9- it doesn't) Either way this solution seems to be working well, updated the tests to check all TypedArrays. |
|
@caitp sweet looks like CI finally passed :) |
|
party =) I'll take a look at this later today, gotta finish up a quick patch I'm writing first |
docs/content/error/ng/cpta.ngdoc
Outdated
|
LGTM I lied, I guess I did review the PR before finishing my patch :3 It looks good to me, just fix up the nits and squash the commits |
* angular.copy can now copy a FixedArrays when only provided src.
|
@caitp Ok i squashed with my changes. :3 |
|
good stuff, looks ready to merge to me |
|
i guess this was really a feature rather than a fix >_- oh well, not changing that message :> |
|
This change is great... have you considered exposeding |
angular.copy can now copy a Float32Array when only provided src. I added some tests to confirm this.
fixes #10210