diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-04-06 05:17:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 23:17:00 -0400 |
commit | 91e80ada8a323a6526f760d41f2ebc481814e843 (patch) | |
tree | 9eed0f428d921f561e0ded092d6cda14a381d2ca /core/core.js | |
parent | d849c87eb16a4bebee1a09c171dbdae6a4924a55 (diff) |
core: remove serde_json-isms in op_close() and op_resources() (#10026)
Core no longer uses `serde_json` now, besides re-exporting it or in the module specifier tests
Diffstat (limited to 'core/core.js')
-rw-r--r-- | core/core.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/core.js b/core/core.js index f94ec8139..40a8270e3 100644 --- a/core/core.js +++ b/core/core.js @@ -105,11 +105,11 @@ } function resources() { - return jsonOpSync("op_resources"); + return Object.fromEntries(jsonOpSync("op_resources")); } function close(rid) { - jsonOpSync("op_close", { rid }); + jsonOpSync("op_close", rid); } Object.assign(window.Deno.core, { |