-
-
Notifications
You must be signed in to change notification settings - Fork 52
Add support for BigInts and BigInt-based TypedArrays #184
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
Merged
Merged
Changes from 21 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
fa93b91
Initial BigInt support
j-f1 3ca1539
Switch to const enums
j-f1 bf3bac3
Add JSBigInt/clamped method, fix overload
j-f1 8c02c79
Convert BigInts into Swift ints automatically
j-f1 814774b
Add support for JAVASCRIPTKIT_WITHOUT_BIGINTS
j-f1 0bcb359
Allow Int64/UInt64-based arrays
j-f1 d1543fc
Don’t use BigInt literal for backwards compat
j-f1 f8838eb
bump lib version
j-f1 26b51c7
long long?
j-f1 4dd4aae
document JAVASCRIPTKIT_WITHOUT_BIGINTS flag
j-f1 cd3c076
check compatibility workflow builds all variants
j-f1 76303b9
Increase error stack trace limit
j-f1 c356aba
Use correct type for setTimeout in JavaScriptEventLoop
j-f1 6f150ad
Add symbol support to runtime’s JSValue.decode
j-f1 6257d35
remove JavaScriptValueKindInvalid since neither side produces it
j-f1 203844f
use assertNever to ensure runtime switch statements are kept up to date
j-f1 9d066f9
BigInt tests
j-f1 1fdcd26
Revert changes to README
j-f1 14541b8
consistent whitespace (by semantic grouping) in index.ts
j-f1 dcd38c7
Rename: type→kind
j-f1 63f33d0
drop implicit return
j-f1 30a3e66
assert Int/UInt types are 32-bit for now
j-f1 68cb689
Require BigInts for ConvertibleToJSValue conformance on Int64/UInt64
j-f1 01ae32d
run Prettier on primary-tests.js
j-f1 a44de1a
move stackTraceLimit change to non-benchmark tests only
j-f1 6517b7e
remove JAVASCRIPTKIT_WITHOUT_BIGINTS
j-f1 c54bd10
SPI for JSObject_id
j-f1 7af5917
Move i64 stuff to a separate module
j-f1 b7a6a7d
fix Signed/UnsignedInteger ConstructibleFromJSValue
j-f1 b83611f
fix tests?
j-f1 4ca7705
Address review comments
j-f1 35dd9f7
Simplify JSValue: CustomStringConvertible conformance
j-f1 0ec8fc3
rename to JavaScriptBigIntSupport
j-f1 7960198
Formatting tweak
j-f1 5cff142
fix typo
j-f1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.