Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Nov 23, 2024
1 parent ad5f737 commit dbab159
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ repository = "https://github.com/denoland/deno"

[workspace.dependencies]
deno_ast = { version = "=0.43.3", features = ["transpiling"] }
deno_core = { version = "0.321.0" }
deno_core = { version = "0.322.0" }

deno_bench_util = { version = "0.172.0", path = "./bench_util" }
deno_config = { version = "=0.39.2", features = ["workspace", "sync"] }
Expand Down Expand Up @@ -336,4 +336,4 @@ opt-level = 3
opt-level = 3

[patch.crates-io]
deno_core = { git = "https://github.com/littledivy/deno_core", branch = "required_args" }
deno_core = { git = "https://github.com/littledivy/deno_core", branch = "string_validation" }
1 change: 1 addition & 0 deletions ext/webstorage/01_webstorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function createStorage(persistent) {
configurable: true,
});
}
console.log("set", key, value);
target.setItem(key, value);
return true;
},
Expand Down
1 change: 1 addition & 0 deletions ext/webstorage/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ impl Storage {
state: &mut OpState,
#[string] key: &str,
) -> Result<Option<String>, WebStorageError> {
println!("get_item {}", key);
let conn = get_webstorage(state, self.persistent)?;

let mut stmt =
Expand Down
10 changes: 10 additions & 0 deletions test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var storage = localStorage;
storage.clear();

const key = 9;
const value = "value for " + storage.name;
const expected = value;

storage[key] = value;

console.log(storage.getItem(key));

0 comments on commit dbab159

Please sign in to comment.