mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-30 16:41:03 -05:00
Disable relative vtable on Android (#1581)
This commit is contained in:
parent
e22578dbe1
commit
15b2ad2826
2 changed files with 2 additions and 2 deletions
2
.gn
2
.gn
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
Loading…
Reference in a new issue