mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add support for native creation and resolution of Promises (fixes issue #3305)
This commit is contained in:
committed by
Marshall Greenblatt
parent
60ee4a34aa
commit
fa643b269e
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=6c8f094d04b36c879f379e87ebf45dc4698eb41e$
|
||||
// $hash=a753ff43760df4f3c1126d248b4128ca14a8cd68$
|
||||
//
|
||||
|
||||
#include <dlfcn.h>
|
||||
@@ -204,6 +204,7 @@ struct libcef_pointers {
|
||||
decltype(&cef_v8value_create_array) cef_v8value_create_array;
|
||||
decltype(&cef_v8value_create_array_buffer) cef_v8value_create_array_buffer;
|
||||
decltype(&cef_v8value_create_function) cef_v8value_create_function;
|
||||
decltype(&cef_v8value_create_promise) cef_v8value_create_promise;
|
||||
decltype(&cef_v8stack_trace_get_current) cef_v8stack_trace_get_current;
|
||||
decltype(&cef_value_create) cef_value_create;
|
||||
decltype(&cef_binary_value_create) cef_binary_value_create;
|
||||
@@ -420,6 +421,7 @@ int libcef_init_pointers(const char* path) {
|
||||
INIT_ENTRY(cef_v8value_create_array);
|
||||
INIT_ENTRY(cef_v8value_create_array_buffer);
|
||||
INIT_ENTRY(cef_v8value_create_function);
|
||||
INIT_ENTRY(cef_v8value_create_promise);
|
||||
INIT_ENTRY(cef_v8stack_trace_get_current);
|
||||
INIT_ENTRY(cef_value_create);
|
||||
INIT_ENTRY(cef_binary_value_create);
|
||||
@@ -1114,6 +1116,10 @@ struct _cef_v8value_t* cef_v8value_create_function(
|
||||
return g_libcef_pointers.cef_v8value_create_function(name, handler);
|
||||
}
|
||||
|
||||
NO_SANITIZE("cfi-icall") struct _cef_v8value_t* cef_v8value_create_promise() {
|
||||
return g_libcef_pointers.cef_v8value_create_promise();
|
||||
}
|
||||
|
||||
NO_SANITIZE("cfi-icall")
|
||||
struct _cef_v8stack_trace_t* cef_v8stack_trace_get_current(int frame_limit) {
|
||||
return g_libcef_pointers.cef_v8stack_trace_get_current(frame_limit);
|
||||
|
Reference in New Issue
Block a user