v8/test/wasm-api-tests/BUILD.gn
Hisham Muhammad 0f748aac3e [wasm][c-api] Add handle scope to fix wasm_module_validate
This adds a handle scope to Module::validate in C API
so that the wasm_module_validate can be usable from C.

Without the added handle scope, attempting to call
wasm_module_validate function from C code fails with:

    #
    # Fatal error in v8::HandleScope::CreateHandle()
    # Cannot create a handle without a HandleScope
    #

Bug: v8:12941
Change-Id: I2b4d5dccdaed9501f31447158ebf8e7906a1f8f0
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3692020
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81048}
2022-06-09 16:46:23 +00:00

49 lines
1012 B
Plaintext

# Copyright 2019 The V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../gni/v8.gni")
v8_executable("wasm_api_tests") {
testonly = true
deps = [
"../:common_test_headers",
"../..:v8_internal_headers",
"../..:v8_maybe_icu",
"../..:wee8",
"//build/win:default_exe_manifest",
"//testing/gmock",
"//testing/gtest",
]
data_deps = [ "../../tools:v8_testrunner" ]
data = [
"testcfg.py",
"wasm-api-tests.status",
]
configs = [ "../..:internal_config_base" ]
sources = [
"../../testing/gmock-support.h",
"../../testing/gtest-support.h",
"callbacks.cc",
"finalize.cc",
"globals.cc",
"hostref.cc",
"memory.cc",
"multi-return.cc",
"reflect.cc",
"regressions.cc",
"run-all-wasm-api-tests.cc",
"serialize.cc",
"startup-errors.cc",
"table.cc",
"threads.cc",
"traps.cc",
"wasm-api-test.h",
]
}