Skip to content

Commit 61398ed

Browse files
committed
Add process.exit()
1 parent 5551ba0 commit 61398ed

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.9
2+
3+
- Adds `process.exit()`
4+
15
## 0.0.8
26

37
- Adds node `process.env` object

‎lib/node.dart‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ extension type Agent._(JSObject _) implements JSObject {
1818
extension type Process._(JSObject _) implements JSObject {
1919
/// Process environment
2020
external JSObject get env;
21+
22+
/// Exit the process
23+
external void exit([JSAny? code]);
2124
}
2225

2326
/// Access to the node process object

‎pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: firebase_js_interop
22
description: Wrappers and tools for composing Firebase Cloud Functions in the Dart language
33
homepage: https://github.com/IO-Design-Team/firebase_js_interop
4-
version: 0.0.8
4+
version: 0.0.9
55

66
environment:
77
sdk: ^3.3.0

0 commit comments

Comments
 (0)