Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix JSValueDecoder#185

Merged
j-f1 merged 2 commits into
mainswiftwasm/JavaScriptKit:mainfrom
jed/fix-jsvaluedecoderswiftwasm/JavaScriptKit:jed/fix-jsvaluedecoderCopy head branch name to clipboard
Apr 9, 2022
Merged

Fix JSValueDecoder#185
j-f1 merged 2 commits into
mainswiftwasm/JavaScriptKit:mainfrom
jed/fix-jsvaluedecoderswiftwasm/JavaScriptKit:jed/fix-jsvaluedecoderCopy head branch name to clipboard

Conversation

@j-f1

@j-f1 j-f1 commented Apr 9, 2022

Copy link
Copy Markdown
Member

We didn’t have any tests exercising this code, and as far as I can tell it has never worked.

@j-f1 j-f1 requested a review from a team April 9, 2022 16:23
@github-actions

github-actions Bot commented Apr 9, 2022

Copy link
Copy Markdown

Time Change: +603.25ms (6%) 🔍

Total Time: 9,693.75ms

Test name Duration Change
Serialization/Swift Int to JavaScript 2,912.75ms +184.5ms (6%) 🔍
Serialization/Swift String to JavaScript 2,978ms +177ms (5%) 🔍
Object heap/Increment and decrement RC 3,366.5ms +241ms (7%) 🔍
ℹ️ View Unchanged
Test name Duration Change
Serialization/Write JavaScript number directly 214.5ms -3ms (1%)
Serialization/Write JavaScript string directly 222ms +3.75ms (1%)

performance-action

@MaxDesiatov MaxDesiatov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Didn't we have an open issue for this somewhere, or am I misremembering?

@j-f1

j-f1 commented Apr 9, 2022

Copy link
Copy Markdown
Member Author

Not that I know of, although there is #116 for implementing JSValueEncoder.

@j-f1 j-f1 merged commit 7b0e0d2 into main Apr 9, 2022
@j-f1 j-f1 deleted the jed/fix-jsvaluedecoder branch April 9, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.