diff options
Diffstat (limited to 'cli/tests/testdata/fmt')
46 files changed, 0 insertions, 556 deletions
diff --git a/cli/tests/testdata/fmt/badly_formatted.ipynb b/cli/tests/testdata/fmt/badly_formatted.ipynb deleted file mode 100644 index c8600564f..000000000 --- a/cli/tests/testdata/fmt/badly_formatted.ipynb +++ /dev/null @@ -1,105 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Hello Markdown\n", - "this isn't formatted properly" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Hello World\n" - ] - } - ], - "source": [ - "console.log(\"Hello World\"\n", - "\n", - ");" - ] - }, - { - "cell_type": "raw", - "metadata": {}, - "source": [ - "raw text\n", - " here too\n" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "alice\n" - ] - } - ], - "source": [ - "function hello(name: string ) {\n", - " console.log(name);\n", - "};\n", - "\n", - "hello( \"alice\");\n" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": {}, - "outputs": [], - "source": [ - "function foo(): number {\n", - " return 2;\n", - "}\n" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong\n" - ] - } - ], - "source": [ - "console.log(\"loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong\");" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Deno", - "language": "typescript", - "name": "deno" - }, - "language_info": { - "file_extension": ".ts", - "mimetype": "text/x.typescript", - "name": "typescript", - "nb_converter": "script", - "pygments_lexer": "typescript", - "version": "5.2.2" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/cli/tests/testdata/fmt/badly_formatted.json b/cli/tests/testdata/fmt/badly_formatted.json deleted file mode 100644 index f2bacf73d..000000000 --- a/cli/tests/testdata/fmt/badly_formatted.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - - - "key1": "value1", - "key2": true, - "key3": ["value2", "value3", false], - "keys": { - "more": "values" - } - - -}
\ No newline at end of file diff --git a/cli/tests/testdata/fmt/badly_formatted.md b/cli/tests/testdata/fmt/badly_formatted.md deleted file mode 100644 index 26afe483b..000000000 --- a/cli/tests/testdata/fmt/badly_formatted.md +++ /dev/null @@ -1,46 +0,0 @@ -# Hello Markdown - -```js -console.log("Hello World" - -) -``` - -```javascript -console.log("Hello World2" - -) -``` - -```ts - -function hello(name: string ) { - console.log(name); -}; - -hello( "alice"); -``` - -```typescript -function foo(): number { - return 2; -} -``` - -```jsonc - -{ - // Comment in JSON - "key": "value", - "key2": - "value2", -} - -``` - -```json -{ - "numbers": - ["1", "2"] -} -```
\ No newline at end of file diff --git a/cli/tests/testdata/fmt/badly_formatted.mjs b/cli/tests/testdata/fmt/badly_formatted.mjs deleted file mode 100644 index bc515a330..000000000 --- a/cli/tests/testdata/fmt/badly_formatted.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Deliberately using .mjs to avoid triggering dprint -console.log("Hello World" - -) diff --git a/cli/tests/testdata/fmt/badly_formatted_fixed.ipynb b/cli/tests/testdata/fmt/badly_formatted_fixed.ipynb deleted file mode 100644 index a26a95e24..000000000 --- a/cli/tests/testdata/fmt/badly_formatted_fixed.ipynb +++ /dev/null @@ -1,106 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Hello Markdown\n", - "\n", - "this isn't formatted properly" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Hello World\n" - ] - } - ], - "source": [ - "console.log(\"Hello World\");" - ] - }, - { - "cell_type": "raw", - "metadata": {}, - "source": [ - "raw text\n", - " here too\n" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "alice\n" - ] - } - ], - "source": [ - "function hello(name: string) {\n", - " console.log(name);\n", - "}\n", - "\n", - "hello(\"alice\");" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": {}, - "outputs": [], - "source": [ - "function foo(): number {\n", - " return 2;\n", - "}" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong\n" - ] - } - ], - "source": [ - "console.log(\n", - " \"loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong\",\n", - ");" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Deno", - "language": "typescript", - "name": "deno" - }, - "language_info": { - "file_extension": ".ts", - "mimetype": "text/x.typescript", - "name": "typescript", - "nb_converter": "script", - "pygments_lexer": "typescript", - "version": "5.2.2" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/cli/tests/testdata/fmt/badly_formatted_fixed.js b/cli/tests/testdata/fmt/badly_formatted_fixed.js deleted file mode 100644 index e9062ba85..000000000 --- a/cli/tests/testdata/fmt/badly_formatted_fixed.js +++ /dev/null @@ -1,2 +0,0 @@ -// Deliberately using .mjs to avoid triggering dprint -console.log("Hello World"); diff --git a/cli/tests/testdata/fmt/badly_formatted_fixed.json b/cli/tests/testdata/fmt/badly_formatted_fixed.json deleted file mode 100644 index 0d697a2c6..000000000 --- a/cli/tests/testdata/fmt/badly_formatted_fixed.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "key1": "value1", - "key2": true, - "key3": ["value2", "value3", false], - "keys": { - "more": "values" - } -} diff --git a/cli/tests/testdata/fmt/badly_formatted_fixed.md b/cli/tests/testdata/fmt/badly_formatted_fixed.md deleted file mode 100644 index 8ba74cac3..000000000 --- a/cli/tests/testdata/fmt/badly_formatted_fixed.md +++ /dev/null @@ -1,37 +0,0 @@ -# Hello Markdown - -```js -console.log("Hello World"); -``` - -```javascript -console.log("Hello World2"); -``` - -```ts -function hello(name: string) { - console.log(name); -} - -hello("alice"); -``` - -```typescript -function foo(): number { - return 2; -} -``` - -```jsonc -{ - // Comment in JSON - "key": "value", - "key2": "value2" -} -``` - -```json -{ - "numbers": ["1", "2"] -} -``` diff --git a/cli/tests/testdata/fmt/deno.glob.json b/cli/tests/testdata/fmt/deno.glob.json deleted file mode 100644 index ff74e9d2b..000000000 --- a/cli/tests/testdata/fmt/deno.glob.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "fmt": { - "include": [ - "glob/data/test1.?s", - "glob/nested/foo/*.ts", - "glob/nested/fizz/*.ts", - "glob/pages/[id].ts" - ], - "exclude": ["glob/nested/**/*bazz.ts"] - } -} diff --git a/cli/tests/testdata/fmt/deno.malformed.jsonc b/cli/tests/testdata/fmt/deno.malformed.jsonc deleted file mode 100644 index e326edb1f..000000000 --- a/cli/tests/testdata/fmt/deno.malformed.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "fmt": { - "include": ["fmt_with_config/"], - "exclude": ["fmt_with_config/b.ts"], - "dont_know_this_field": {}, - "options": { - "useTabs": true - } - } -} diff --git a/cli/tests/testdata/fmt/deno.malformed2.jsonc b/cli/tests/testdata/fmt/deno.malformed2.jsonc deleted file mode 100644 index e326edb1f..000000000 --- a/cli/tests/testdata/fmt/deno.malformed2.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "fmt": { - "include": ["fmt_with_config/"], - "exclude": ["fmt_with_config/b.ts"], - "dont_know_this_field": {}, - "options": { - "useTabs": true - } - } -} diff --git a/cli/tests/testdata/fmt/expected_fmt_check_formatted_files.out b/cli/tests/testdata/fmt/expected_fmt_check_formatted_files.out deleted file mode 100644 index 5a4833dd4..000000000 --- a/cli/tests/testdata/fmt/expected_fmt_check_formatted_files.out +++ /dev/null @@ -1 +0,0 @@ -Checked 4 files diff --git a/cli/tests/testdata/fmt/expected_fmt_check_ignore.out b/cli/tests/testdata/fmt/expected_fmt_check_ignore.out deleted file mode 100644 index 7c1e471b9..000000000 --- a/cli/tests/testdata/fmt/expected_fmt_check_ignore.out +++ /dev/null @@ -1 +0,0 @@ -Checked 3 files diff --git a/cli/tests/testdata/fmt/expected_fmt_check_verbose_formatted_files.out b/cli/tests/testdata/fmt/expected_fmt_check_verbose_formatted_files.out deleted file mode 100644 index 158c556c2..000000000 --- a/cli/tests/testdata/fmt/expected_fmt_check_verbose_formatted_files.out +++ /dev/null @@ -1 +0,0 @@ -Checked 2 files diff --git a/cli/tests/testdata/fmt/fmt_check_parse_error.out b/cli/tests/testdata/fmt/fmt_check_parse_error.out deleted file mode 100644 index 9854b6c97..000000000 --- a/cli/tests/testdata/fmt/fmt_check_parse_error.out +++ /dev/null @@ -1,6 +0,0 @@ -Error checking: [WILDCARD]parse_error.ts - Expected '{', got '<eof>' at [WILDCARD]parse_error.ts:2:7 - - class Test - ~~~~ -error: Found 1 not formatted file in 1 file diff --git a/cli/tests/testdata/fmt/fmt_with_config.out b/cli/tests/testdata/fmt/fmt_with_config.out deleted file mode 100644 index 158c556c2..000000000 --- a/cli/tests/testdata/fmt/fmt_with_config.out +++ /dev/null @@ -1 +0,0 @@ -Checked 2 files diff --git a/cli/tests/testdata/fmt/fmt_with_config_and_flags.out b/cli/tests/testdata/fmt/fmt_with_config_and_flags.out deleted file mode 100644 index c05ac45a1..000000000 --- a/cli/tests/testdata/fmt/fmt_with_config_and_flags.out +++ /dev/null @@ -1 +0,0 @@ -Checked 1 file diff --git a/cli/tests/testdata/fmt/fmt_with_config_default.out b/cli/tests/testdata/fmt/fmt_with_config_default.out deleted file mode 100644 index faad9352b..000000000 --- a/cli/tests/testdata/fmt/fmt_with_config_default.out +++ /dev/null @@ -1,2 +0,0 @@ -Config file found at '[WILDCARD]deno.jsonc' -Checked 2 files diff --git a/cli/tests/testdata/fmt/fmt_with_deprecated_config.out b/cli/tests/testdata/fmt/fmt_with_deprecated_config.out deleted file mode 100644 index 793fac1bc..000000000 --- a/cli/tests/testdata/fmt/fmt_with_deprecated_config.out +++ /dev/null @@ -1,3 +0,0 @@ -Warning: "options" configuration is deprecated. Please use "flat" options instead. -Warning: "files" configuration is deprecated. Please use "include" and "exclude" instead. -Checked 2 files diff --git a/cli/tests/testdata/fmt/fmt_with_malformed_config.out b/cli/tests/testdata/fmt/fmt_with_malformed_config.out deleted file mode 100644 index c269053a6..000000000 --- a/cli/tests/testdata/fmt/fmt_with_malformed_config.out +++ /dev/null @@ -1,4 +0,0 @@ -error: Failed to parse "fmt" configuration - -Caused by: - unknown field `dont_know_this_field`, expected one of `useTabs`, `lineWidth`, `indentWidth`, `singleQuote`, `proseWrap`, `semiColons`, `options`, `include`, `exclude`, `files` diff --git a/cli/tests/testdata/fmt/fmt_with_malformed_config2.out b/cli/tests/testdata/fmt/fmt_with_malformed_config2.out deleted file mode 100644 index c269053a6..000000000 --- a/cli/tests/testdata/fmt/fmt_with_malformed_config2.out +++ /dev/null @@ -1,4 +0,0 @@ -error: Failed to parse "fmt" configuration - -Caused by: - unknown field `dont_know_this_field`, expected one of `useTabs`, `lineWidth`, `indentWidth`, `singleQuote`, `proseWrap`, `semiColons`, `options`, `include`, `exclude`, `files` diff --git a/cli/tests/testdata/fmt/glob/data/tes.ts b/cli/tests/testdata/fmt/glob/data/tes.ts deleted file mode 100644 index 0127c4af3..000000000 --- a/cli/tests/testdata/fmt/glob/data/tes.ts +++ /dev/null @@ -1,3 +0,0 @@ - function foo() { - -}
\ No newline at end of file diff --git a/cli/tests/testdata/fmt/glob/data/test1.js b/cli/tests/testdata/fmt/glob/data/test1.js deleted file mode 100644 index e939e4595..000000000 --- a/cli/tests/testdata/fmt/glob/data/test1.js +++ /dev/null @@ -1,2 +0,0 @@ - function foo() { -} diff --git a/cli/tests/testdata/fmt/glob/data/test1.ts b/cli/tests/testdata/fmt/glob/data/test1.ts deleted file mode 100644 index e939e4595..000000000 --- a/cli/tests/testdata/fmt/glob/data/test1.ts +++ /dev/null @@ -1,2 +0,0 @@ - function foo() { -} diff --git a/cli/tests/testdata/fmt/glob/data/test12.ts b/cli/tests/testdata/fmt/glob/data/test12.ts deleted file mode 100644 index 0127c4af3..000000000 --- a/cli/tests/testdata/fmt/glob/data/test12.ts +++ /dev/null @@ -1,3 +0,0 @@ - function foo() { - -}
\ No newline at end of file diff --git a/cli/tests/testdata/fmt/glob/nested/fizz/bar.ts b/cli/tests/testdata/fmt/glob/nested/fizz/bar.ts deleted file mode 100644 index e939e4595..000000000 --- a/cli/tests/testdata/fmt/glob/nested/fizz/bar.ts +++ /dev/null @@ -1,2 +0,0 @@ - function foo() { -} diff --git a/cli/tests/testdata/fmt/glob/nested/fizz/bazz.ts b/cli/tests/testdata/fmt/glob/nested/fizz/bazz.ts deleted file mode 100644 index 0127c4af3..000000000 --- a/cli/tests/testdata/fmt/glob/nested/fizz/bazz.ts +++ /dev/null @@ -1,3 +0,0 @@ - function foo() { - -}
\ No newline at end of file diff --git a/cli/tests/testdata/fmt/glob/nested/fizz/fizz.ts b/cli/tests/testdata/fmt/glob/nested/fizz/fizz.ts deleted file mode 100644 index e939e4595..000000000 --- a/cli/tests/testdata/fmt/glob/nested/fizz/fizz.ts +++ /dev/null @@ -1,2 +0,0 @@ - function foo() { -} diff --git a/cli/tests/testdata/fmt/glob/nested/fizz/foo.ts b/cli/tests/testdata/fmt/glob/nested/fizz/foo.ts deleted file mode 100644 index e939e4595..000000000 --- a/cli/tests/testdata/fmt/glob/nested/fizz/foo.ts +++ /dev/null @@ -1,2 +0,0 @@ - function foo() { -} diff --git a/cli/tests/testdata/fmt/glob/nested/foo/bar.ts b/cli/tests/testdata/fmt/glob/nested/foo/bar.ts deleted file mode 100644 index e939e4595..000000000 --- a/cli/tests/testdata/fmt/glob/nested/foo/bar.ts +++ /dev/null @@ -1,2 +0,0 @@ - function foo() { -} diff --git a/cli/tests/testdata/fmt/glob/nested/foo/bazz.ts b/cli/tests/testdata/fmt/glob/nested/foo/bazz.ts deleted file mode 100644 index 0127c4af3..000000000 --- a/cli/tests/testdata/fmt/glob/nested/foo/bazz.ts +++ /dev/null @@ -1,3 +0,0 @@ - function foo() { - -}
\ No newline at end of file diff --git a/cli/tests/testdata/fmt/glob/nested/foo/fizz.ts b/cli/tests/testdata/fmt/glob/nested/foo/fizz.ts deleted file mode 100644 index e939e4595..000000000 --- a/cli/tests/testdata/fmt/glob/nested/foo/fizz.ts +++ /dev/null @@ -1,2 +0,0 @@ - function foo() { -} diff --git a/cli/tests/testdata/fmt/glob/nested/foo/foo.ts b/cli/tests/testdata/fmt/glob/nested/foo/foo.ts deleted file mode 100644 index e939e4595..000000000 --- a/cli/tests/testdata/fmt/glob/nested/foo/foo.ts +++ /dev/null @@ -1,2 +0,0 @@ - function foo() { -} diff --git a/cli/tests/testdata/fmt/glob/pages/[id].ts b/cli/tests/testdata/fmt/glob/pages/[id].ts deleted file mode 100644 index e939e4595..000000000 --- a/cli/tests/testdata/fmt/glob/pages/[id].ts +++ /dev/null @@ -1,2 +0,0 @@ - function foo() { -} diff --git a/cli/tests/testdata/fmt/invalid_data.json b/cli/tests/testdata/fmt/invalid_data.json Binary files differdeleted file mode 100644 index fb9bec94f..000000000 --- a/cli/tests/testdata/fmt/invalid_data.json +++ /dev/null diff --git a/cli/tests/testdata/fmt/invalid_data.out b/cli/tests/testdata/fmt/invalid_data.out deleted file mode 100644 index dee00fcc5..000000000 --- a/cli/tests/testdata/fmt/invalid_data.out +++ /dev/null @@ -1,4 +0,0 @@ -error: [WILDCARD] is not a valid UTF-8 file - -Caused by: - invalid data diff --git a/cli/tests/testdata/fmt/parse_error/parse_error.ts b/cli/tests/testdata/fmt/parse_error/parse_error.ts deleted file mode 100644 index 136d16508..000000000 --- a/cli/tests/testdata/fmt/parse_error/parse_error.ts +++ /dev/null @@ -1,2 +0,0 @@ -// a file that purposefully will cause an error -class Test diff --git a/cli/tests/testdata/fmt/regular/formatted1.js b/cli/tests/testdata/fmt/regular/formatted1.js deleted file mode 100644 index 587aa5b96..000000000 --- a/cli/tests/testdata/fmt/regular/formatted1.js +++ /dev/null @@ -1,5 +0,0 @@ -function foo() { - return 42; -} - -foo(); diff --git a/cli/tests/testdata/fmt/regular/formatted2.ts b/cli/tests/testdata/fmt/regular/formatted2.ts deleted file mode 100644 index 4a8036806..000000000 --- a/cli/tests/testdata/fmt/regular/formatted2.ts +++ /dev/null @@ -1,5 +0,0 @@ -function bar(): number { - return 42; -} - -bar(); diff --git a/cli/tests/testdata/fmt/regular/formatted3.markdown b/cli/tests/testdata/fmt/regular/formatted3.markdown deleted file mode 100644 index e6e616584..000000000 --- a/cli/tests/testdata/fmt/regular/formatted3.markdown +++ /dev/null @@ -1,17 +0,0 @@ -# Hello - -```js -function foo() { - return 42; -} - -foo(); -``` - -```ts -function bar(): number { - return 42; -} - -bar(); -``` diff --git a/cli/tests/testdata/fmt/regular/formatted4.jsonc b/cli/tests/testdata/fmt/regular/formatted4.jsonc deleted file mode 100644 index f0f72a6ed..000000000 --- a/cli/tests/testdata/fmt/regular/formatted4.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -{ - // Comment - "key": "value" -} diff --git a/cli/tests/testdata/fmt/with_config/deno.deprecated.jsonc b/cli/tests/testdata/fmt/with_config/deno.deprecated.jsonc deleted file mode 100644 index e053233fd..000000000 --- a/cli/tests/testdata/fmt/with_config/deno.deprecated.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -{ - "fmt": { - "files": { - "include": [ - "./subdir/" - ], - "exclude": [ - "./subdir/b.ts" - ] - }, - "options": { - "useTabs": true, - "lineWidth": 40, - "indentWidth": 8, - "singleQuote": true, - "proseWrap": "always", - "semiColons": false - } - } -} diff --git a/cli/tests/testdata/fmt/with_config/deno.jsonc b/cli/tests/testdata/fmt/with_config/deno.jsonc deleted file mode 100644 index ffd265dcd..000000000 --- a/cli/tests/testdata/fmt/with_config/deno.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "fmt": { - "include": [ - "./subdir/" - ], - "exclude": [ - "./subdir/b.ts" - ], - "useTabs": true, - "lineWidth": 40, - "indentWidth": 8, - "singleQuote": true, - "proseWrap": "always", - "semiColons": false - } -} diff --git a/cli/tests/testdata/fmt/with_config/subdir/a.ts b/cli/tests/testdata/fmt/with_config/subdir/a.ts deleted file mode 100644 index 5474b3aa3..000000000 --- a/cli/tests/testdata/fmt/with_config/subdir/a.ts +++ /dev/null @@ -1,46 +0,0 @@ -Deno.test( - { perms: { net: true } }, - async function responseClone() { - const response = - await fetch( - 'http://localhost:4545/assets/fixture.json', - ) - const response1 = - response.clone() - assert( - response !== - response1, - ) - assertEquals( - response.status, - response1 - .status, - ) - assertEquals( - response.statusText, - response1 - .statusText, - ) - const u8a = - new Uint8Array( - await response - .arrayBuffer(), - ) - const u8a1 = - new Uint8Array( - await response1 - .arrayBuffer(), - ) - for ( - let i = 0; - i < - u8a.byteLength; - i++ - ) { - assertEquals( - u8a[i], - u8a1[i], - ) - } - }, -) diff --git a/cli/tests/testdata/fmt/with_config/subdir/b.ts b/cli/tests/testdata/fmt/with_config/subdir/b.ts deleted file mode 100644 index d7eb08b09..000000000 --- a/cli/tests/testdata/fmt/with_config/subdir/b.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file should be excluded from formatting -Deno.test( - { perms: { net: true } }, - async function fetchBodyUsedCancelStream() { - const response = await fetch( - "http://localhost:4545/assets/fixture.json", - ); - assert(response.body !== null); - - assertEquals(response.bodyUsed, false); - const promise = response.body.cancel(); - assertEquals(response.bodyUsed, true); - await promise; - }, -);
\ No newline at end of file diff --git a/cli/tests/testdata/fmt/with_config/subdir/c.md b/cli/tests/testdata/fmt/with_config/subdir/c.md deleted file mode 100644 index 012f7e3d4..000000000 --- a/cli/tests/testdata/fmt/with_config/subdir/c.md +++ /dev/null @@ -1,17 +0,0 @@ -## Permissions - -Deno is secure by default. Therefore, -unless you specifically enable it, a -program run with Deno has no file, -network, or environment access. Access -to security sensitive functionality -requires that permisisons have been -granted to an executing script through -command line flags, or a runtime -permission prompt. - -For the following example `mod.ts` has -been granted read-only access to the -file system. It cannot write to the file -system, or perform any other security -sensitive functions. |