From d492c5abe3c7c0716b9695c8a40d0256569d2338 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Thu, 9 Jan 2020 11:37:01 -0700 Subject: feat: Deno.args now does not include script (#3628) Previously Deno.args was ["script.js", "arg1", "arg2"] Now it is just ["arg1", "arg2"] BREAKING CHANGE --- std/http/http_bench.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/http') diff --git a/std/http/http_bench.ts b/std/http/http_bench.ts index 8ca389e5c..9d1912831 100644 --- a/std/http/http_bench.ts +++ b/std/http/http_bench.ts @@ -1,7 +1,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { serve } from "./server.ts"; -const addr = Deno.args[1] || "127.0.0.1:4500"; +const addr = Deno.args[0] || "127.0.0.1:4500"; const server = serve(addr); const body = new TextEncoder().encode("Hello World"); -- cgit v1.2.3