From 72f9a2e20de7839deb446b5cb6bc6dd7e5faf4f2 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 11 Mar 2019 17:57:36 -0400 Subject: core: Abstract out Behavior from Isolate (#1904) Move v8_set_flags and v8_version to core. (The idea is that src/ should not depend on libdeno.rs anymore. This is a step towards that.) --- src/version.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/version.rs') diff --git a/src/version.rs b/src/version.rs index 1cf082257..e6ec9008b 100644 --- a/src/version.rs +++ b/src/version.rs @@ -1,12 +1,6 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -use crate::libdeno; - -use std::ffi::CStr; - pub const DENO: &str = env!("CARGO_PKG_VERSION"); pub fn v8() -> &'static str { - let version = unsafe { libdeno::deno_v8_version() }; - let c_str = unsafe { CStr::from_ptr(version) }; - c_str.to_str().unwrap() + deno_core::v8_version() } -- cgit v1.2.3