Skip to content
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

perf(ext/webstorage): use object wrap for Storage #26931

Merged
merged 19 commits into from
Nov 27, 2024

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Nov 19, 2024

Unverified

No user is associated with the committer email.
@littledivy littledivy added the ci-draft Run the CI on draft PRs. label Nov 19, 2024

Unverified

No user is associated with the committer email.
x

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
x

Unverified

No user is associated with the committer email.

Unverified

No user is associated with the committer email.

Unverified

No user is associated with the committer email.
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
x

Unverified

No user is associated with the committer email.
x

Unverified

No user is associated with the committer email.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@littledivy littledivy changed the title chore(ext/webstorage): rewrite Storage in op2 object wrap chore(ext/webstorage): use object wrap for Storage Nov 23, 2024
@littledivy littledivy changed the title chore(ext/webstorage): use object wrap for Storage chore(ext/webstorage): use object wrap for Storage Nov 23, 2024
Try

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fmt

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fx

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@littledivy littledivy changed the title chore(ext/webstorage): use object wrap for Storage perf(ext/webstorage): use object wrap for Storage Nov 23, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
AustinAbro321 Austin Abro
@@ -9789,7 +9789,7 @@
"event_constructor.window.html": false,
"event_initstorageevent.window.html": false,
"missing_arguments.window.html": true,
"storage_builtins.window.html": true,
"storage_builtins.window.html": false,
Copy link
Member Author

Choose a reason for hiding this comment

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

This test checks if

Storage.prototype.setItem == localStorage.setItem

but our Proxy needs to create a new instance via .bind because receiver holds cppgc object.

Comment on lines +145 to +147
#[required(1)]
#[string]
fn key(
Copy link
Member

Choose a reason for hiding this comment

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

#[arguments = { required(1) }, return = string]

Comment on lines +164 to +165
#[fast]
#[required(2)]
Copy link
Member

@bartlomieju bartlomieju Nov 26, 2024

Choose a reason for hiding this comment

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

#[fast, webidl = { required(2) }]

@littledivy littledivy marked this pull request as ready for review November 27, 2024 03:21
@littledivy littledivy merged commit 1e51b65 into denoland:main Nov 27, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-draft Run the CI on draft PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants