Skip to content

Commit 9913184

Browse files
committed
fix unstable warnings
1 parent 19465c1 commit 9913184

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ plt.plot(xpoints, ypoints);
3232
plt.show();
3333
```
3434

35-
When running, you **must** specify `--allow-ffi`, `--allow-env` and `--unstable`
35+
When running, you **must** specify `--allow-ffi`, `--allow-env` and `--unstable-ffi`
3636
flags. Alternatively, you may also just specify `-A` instead of specific
3737
permissions since enabling FFI effectively escapes the permissions sandbox.
3838

3939
```shell
40-
deno run -A --unstable <file>
40+
deno run -A --unstable-ffi <file>
4141
```
4242

4343
### Usage in Bun

deno.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"tasks": {
33
"check": "deno task check:mod && deno task check:ext && deno task check:examples",
4-
"check:mod": "deno check --unstable mod.ts",
5-
"check:ext": "deno check --unstable ext/*.ts",
6-
"check:examples": "deno check --unstable examples/*.ts",
7-
"test": "deno test --unstable -A test/test.ts",
8-
"example:hello_python": "deno run -A --unstable examples/hello_python.ts",
9-
"example:matplotlib": "deno run -A --unstable examples/matplotlib.ts",
10-
"example:pip_import": "deno run -A --unstable examples/pip_import.ts",
11-
"example:run_code": "deno run -A --unstable examples/run_code.ts",
12-
"example:tensorflow": "deno run -A --unstable examples/tensorflow.ts"
4+
"check:mod": "deno check --unstable-ffi mod.ts",
5+
"check:ext": "deno check --unstable-ffi ext/*.ts",
6+
"check:examples": "deno check --unstable-ffi examples/*.ts",
7+
"test": "deno test --unstable-ffi -A test/test.ts",
8+
"example:hello_python": "deno run -A --unstable-ffi examples/hello_python.ts",
9+
"example:matplotlib": "deno run -A --unstable-ffi examples/matplotlib.ts",
10+
"example:pip_import": "deno run -A --unstable-ffi examples/pip_import.ts",
11+
"example:run_code": "deno run -A --unstable-ffi examples/run_code.ts",
12+
"example:tensorflow": "deno run -A --unstable-ffi examples/tensorflow.ts"
1313
}
1414
}

src/ffi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ for (const path of searchPath) {
4444
} catch (err) {
4545
if (err instanceof TypeError && !("Bun" in globalThis)) {
4646
throw new Error(
47-
"Cannot load dynamic library because --unstable flag was not set",
47+
"Cannot load dynamic library because --unstable-ffi flag was not set",
4848
{ cause: err },
4949
);
5050
}

0 commit comments

Comments
 (0)