Disable relative vtable on Android (#1581)

This commit is contained in:
Divy Srivastava 2024-08-25 21:02:33 -07:00 committed by GitHub
parent e22578dbe1
commit 15b2ad2826
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

2
.gn
View File

@ -86,4 +86,6 @@ default_args = {
# #
# rusty_v8 scopes are not on the stack. # rusty_v8 scopes are not on the stack.
v8_enable_v8_checks = false v8_enable_v8_checks = false
use_relative_vtables_abi = false
} }

View File

@ -9444,7 +9444,6 @@ fn compile_function() {
assert_eq!(42 * 1337, result.int32_value(scope).unwrap()); assert_eq!(42 * 1337, result.int32_value(scope).unwrap());
} }
#[cfg(not(target_os = "android"))]
static EXAMPLE_STRING: v8::OneByteConst = static EXAMPLE_STRING: v8::OneByteConst =
v8::String::create_external_onebyte_const(b"const static"); v8::String::create_external_onebyte_const(b"const static");
@ -9516,7 +9515,6 @@ fn external_strings() {
assert!(latin1.contains_only_onebyte()); assert!(latin1.contains_only_onebyte());
// one-byte "const" test // one-byte "const" test
#[cfg(not(target_os = "android"))]
{ {
assert_eq!(EXAMPLE_STRING.as_bytes(), b"const static"); assert_eq!(EXAMPLE_STRING.as_bytes(), b"const static");
let const_ref_string = let const_ref_string =