diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-08-13 14:51:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-13 14:51:15 -0400 |
commit | 1f8b1a587c397dd01e058820769580323a0f7330 (patch) | |
tree | a600f22f4639d8ac319276b3d58580c3431f2d4f /tests/error_016_dynamic_import_permissions2.js | |
parent | 1947f572d735096c1ccd7de2c386b8289c287701 (diff) |
Dynamic import should respect permissions (#2764)
Diffstat (limited to 'tests/error_016_dynamic_import_permissions2.js')
-rw-r--r-- | tests/error_016_dynamic_import_permissions2.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/error_016_dynamic_import_permissions2.js b/tests/error_016_dynamic_import_permissions2.js new file mode 100644 index 000000000..71c70815c --- /dev/null +++ b/tests/error_016_dynamic_import_permissions2.js @@ -0,0 +1,5 @@ +// If this is executed with --allow-net but not --allow-read the following +// import should cause a permission denied error. +(async () => { + await import("http://localhost:4545/tests/subdir/evil_remote_import.js"); +})(); |