mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 23:24:37 +00:00
refactor: convert ops to use serde_v8 (#10009)
This commit rewrites most of the ops to use "serde_v8" instead of "json" serialization.
This commit is contained in:
parent
284e6c3039
commit
2aed322dd5
49 changed files with 840 additions and 980 deletions
|
@ -99,9 +99,7 @@
|
|||
|
||||
this.#url = wsURL.href;
|
||||
|
||||
core.jsonOpSync("op_ws_check_permission", {
|
||||
url: this.#url,
|
||||
});
|
||||
core.jsonOpSync("op_ws_check_permission", this.#url);
|
||||
|
||||
if (protocols && typeof protocols === "string") {
|
||||
protocols = [protocols];
|
||||
|
@ -311,7 +309,7 @@
|
|||
while (this.#readyState === OPEN) {
|
||||
const message = await core.jsonOpAsync(
|
||||
"op_ws_next_event",
|
||||
{ rid: this.#rid },
|
||||
this.#rid,
|
||||
);
|
||||
|
||||
switch (message.kind) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue