[api] Restore v8::V8::InitializeICU API.
This function re-uses the implementation of InitializeICUDefaultLocation. Removal of the API breaks embedders' code without providing any benefit. Bug: v8:7561 Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng Change-Id: I006cd307887ac132f574af26ca9cd1d5e5317644 Reviewed-on: https://chromium-review.googlesource.com/963024 Reviewed-by: Michael Achenbach <machenbach@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Cr-Commit-Position: refs/heads/master@{#51956}
This commit is contained in:
parent
ab0565af06
commit
6ad63309ed
@ -7955,6 +7955,15 @@ class V8_EXPORT V8 {
|
||||
*/
|
||||
static bool Dispose();
|
||||
|
||||
/**
|
||||
* Initialize the ICU library bundled with V8. The embedder should only
|
||||
* invoke this method when using the bundled ICU. Returns true on success.
|
||||
*
|
||||
* If V8 was compiled with the ICU data in an external file, the location
|
||||
* of the data file has to be provided.
|
||||
*/
|
||||
static bool InitializeICU(const char* icu_data_file = nullptr);
|
||||
|
||||
/**
|
||||
* Initialize the ICU library bundled with V8. The embedder should only
|
||||
* invoke this method when using the bundled ICU. If V8 was compiled with
|
||||
|
@ -6158,6 +6158,10 @@ HeapObjectStatistics::HeapObjectStatistics()
|
||||
HeapCodeStatistics::HeapCodeStatistics()
|
||||
: code_and_metadata_size_(0), bytecode_and_metadata_size_(0) {}
|
||||
|
||||
bool v8::V8::InitializeICU(const char* icu_data_file) {
|
||||
return i::InitializeICU(icu_data_file);
|
||||
}
|
||||
|
||||
bool v8::V8::InitializeICUDefaultLocation(const char* exec_path,
|
||||
const char* icu_data_file) {
|
||||
return i::InitializeICUDefaultLocation(exec_path, icu_data_file);
|
||||
|
Loading…
Reference in New Issue
Block a user