summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/tests/unit/os_test.ts2
-rw-r--r--runtime/ops/runtime.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/unit/os_test.ts b/cli/tests/unit/os_test.ts
index a8cc55e87..e24494854 100644
--- a/cli/tests/unit/os_test.ts
+++ b/cli/tests/unit/os_test.ts
@@ -158,10 +158,12 @@ Deno.test({ permissions: { env: true } }, function envInvalidChars() {
});
Deno.test(function osPid() {
+ assertEquals(typeof Deno.pid, "number");
assert(Deno.pid > 0);
});
Deno.test(function osPpid() {
+ assertEquals(typeof Deno.ppid, "number");
assert(Deno.ppid > 0);
});
diff --git a/runtime/ops/runtime.rs b/runtime/ops/runtime.rs
index 3f00142cb..5b0b092c1 100644
--- a/runtime/ops/runtime.rs
+++ b/runtime/ops/runtime.rs
@@ -32,7 +32,7 @@ fn op_main_module(state: &mut OpState) -> Result<String, AnyError> {
/// This is an op instead of being done at initialization time because
/// it's expensive to retrieve the ppid on Windows.
#[op2(fast)]
-#[bigint]
+#[number]
pub fn op_ppid() -> i64 {
#[cfg(windows)]
{