Commit b9991bd
committed
[MERGE chakra-core#919] Memset: Native arrays typecheck and missing item check
Merge pull request chakra-core#919 from Cellule:memset/float_type
Memset with native float arrays needs to check the type of the source because we can do `nativearray[i] = var` and bailout after the fact if the source was not a float (ie: changes the type of array).
Since memset will not change the type of the array, it needs to check before hand that the source is actually a float or int and bailout if not.
Additionally, I added a check for `IsMissingItem` for native int and float arrays.1 file changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4685 | 4685 | | |
4686 | 4686 | | |
4687 | 4687 | | |
4688 | | - | |
| 4688 | + | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
4689 | 4695 | | |
4690 | 4696 | | |
4691 | 4697 | | |
4692 | | - | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
4693 | 4711 | | |
4694 | 4712 | | |
4695 | 4713 | | |
| |||
0 commit comments