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/subdir/evil_remote_import.js | |
parent | 1947f572d735096c1ccd7de2c386b8289c287701 (diff) |
Dynamic import should respect permissions (#2764)
Diffstat (limited to 'tests/subdir/evil_remote_import.js')
-rw-r--r-- | tests/subdir/evil_remote_import.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/subdir/evil_remote_import.js b/tests/subdir/evil_remote_import.js new file mode 100644 index 000000000..4ff7d1b97 --- /dev/null +++ b/tests/subdir/evil_remote_import.js @@ -0,0 +1,4 @@ +// We expect to get a permission denied error if we dynamically +// import this module without --allow-read. +export * from "file:///c:/etc/passwd"; +console.log("Hello from evil_remote_import.js"); |