From 33c8d790c3d358a475c9ba828043e2c19e8d4b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Sj=C3=B6green?= Date: Fri, 6 Aug 2021 23:28:10 +0200 Subject: feat: ffi to replace plugins (#11152) This commit removes implementation of "native plugins" and replaces it with FFI API. Effectively "Deno.openPlugin" API was replaced with "Deno.dlopen" API. --- cli/tests/test/allow_all.out | 4 ++-- cli/tests/test/allow_all.ts | 2 +- cli/tests/test/allow_none.out | 6 +++--- cli/tests/test/allow_none.ts | 2 +- cli/tests/test/ignore_permissions.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'cli/tests/test') diff --git a/cli/tests/test/allow_all.out b/cli/tests/test/allow_all.out index 3be26c6e0..9b7367b94 100644 --- a/cli/tests/test/allow_all.out +++ b/cli/tests/test/allow_all.out @@ -10,8 +10,8 @@ test env false ... ok [WILDCARD] test env true ... ok [WILDCARD] test run false ... ok [WILDCARD] test run true ... ok [WILDCARD] -test plugin false ... ok [WILDCARD] -test plugin true ... ok [WILDCARD] +test ffi false ... ok [WILDCARD] +test ffi true ... ok [WILDCARD] test hrtime false ... ok [WILDCARD] test hrtime true ... ok [WILDCARD] diff --git a/cli/tests/test/allow_all.ts b/cli/tests/test/allow_all.ts index e4e12144e..b8f8c647d 100644 --- a/cli/tests/test/allow_all.ts +++ b/cli/tests/test/allow_all.ts @@ -6,7 +6,7 @@ const permissions: Deno.PermissionName[] = [ "net", "env", "run", - "plugin", + "ffi", "hrtime", ]; diff --git a/cli/tests/test/allow_none.out b/cli/tests/test/allow_none.out index 96fb72278..b79c7e6bf 100644 --- a/cli/tests/test/allow_none.out +++ b/cli/tests/test/allow_none.out @@ -5,7 +5,7 @@ test write ... FAILED [WILDCARD] test net ... FAILED [WILDCARD] test env ... FAILED [WILDCARD] test run ... FAILED [WILDCARD] -test plugin ... FAILED [WILDCARD] +test ffi ... FAILED [WILDCARD] test hrtime ... FAILED [WILDCARD] failures: @@ -30,7 +30,7 @@ run PermissionDenied: Can't escalate parent thread permissions [WILDCARD] -plugin +ffi PermissionDenied: Can't escalate parent thread permissions [WILDCARD] @@ -45,7 +45,7 @@ failures: net env run - plugin + ffi hrtime test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD] diff --git a/cli/tests/test/allow_none.ts b/cli/tests/test/allow_none.ts index c0a930eb1..7872c774e 100644 --- a/cli/tests/test/allow_none.ts +++ b/cli/tests/test/allow_none.ts @@ -6,7 +6,7 @@ const permissions: Deno.PermissionName[] = [ "net", "env", "run", - "plugin", + "ffi", "hrtime", ]; diff --git a/cli/tests/test/ignore_permissions.ts b/cli/tests/test/ignore_permissions.ts index bd0567a46..ff3084441 100644 --- a/cli/tests/test/ignore_permissions.ts +++ b/cli/tests/test/ignore_permissions.ts @@ -6,7 +6,7 @@ Deno.test({ net: true, env: true, run: true, - plugin: true, + ffi: true, hrtime: true, }, ignore: true, -- cgit v1.2.3