This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(angular.copy): support copying %TypedArray%s
angular.copy can now copy a %TypedArray%s. Limitations: It is not possible to update the length of a %TypedArray%, so currently an error is thrown if the destination object is a %TypedArray%. However, it is possible to change values in a typed array, so in the future this may only be a problem if the length of the source and destination is different. Closes #10745
- Loading branch information
1 parent
e61eae1
commit aa0f644
Showing
3 changed files
with
199 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ngdoc error | ||
@name ng:cpta | ||
@fullName Copying TypedArray | ||
@description | ||
|
||
Copying TypedArray's with a destination is not supported because TypedArray | ||
objects can not be mutated, they are fixed length. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters