-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MERGE #6326 @zenparsing] Correctly use VarIs in native array methods
Merge pull request #6326 from zenparsing:fix-nativeintarray-push Fixes #6320 In some situations, a float value can appear as the `array` parameter of `JavascriptNativeIntArray::Push`. We were not correctly dealing with this possibility and attempting to get a virtual address pointer from a float.
- Loading branch information
Showing
4 changed files
with
33 additions
and
33 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
function f(array) { | ||
Array.prototype.push.call(array, 1); | ||
' ' + array; | ||
} | ||
|
||
f([0]); | ||
f([0]); | ||
f(2.3023e-320); | ||
|
||
print('PASS'); |
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