summaryrefslogtreecommitdiff
path: root/cli/js/resources.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/resources.ts')
-rw-r--r--cli/js/resources.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/js/resources.ts b/cli/js/resources.ts
index e24c1da67..4c2de1fc3 100644
--- a/cli/js/resources.ts
+++ b/cli/js/resources.ts
@@ -1,5 +1,4 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import * as dispatch from "./dispatch.ts";
import { sendSync } from "./dispatch_json.ts";
export interface ResourceMap {
@@ -10,7 +9,7 @@ export interface ResourceMap {
* representation.
*/
export function resources(): ResourceMap {
- const res = sendSync(dispatch.OP_RESOURCES) as Array<[number, string]>;
+ const res = sendSync("op_resources") as Array<[number, string]>;
const resources: ResourceMap = {};
for (const resourceTuple of res) {
resources[resourceTuple[0]] = resourceTuple[1];