Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibility changes for V8 7.4 support (#142)
* Replace uses of CreateDefaultPlatform with NewDefaultPlatform Use of platform::CreateDefaultPlatform has been deprecated[1][2] in favour of NewDefaultPlatform. This commit changes the method invocation and changes the type of the result to std::unique_ptr. [1] v8/v8@ffee558 https://chromium.googlesource.com/v8/v8/+/ffee558e14e28fc8b1f9a3c10ea3615e0d686c7b https://chromium-review.googlesource.com/c/v8/v8/+/755033/ [2] v8/v8@cbd8f42 https://chromium.googlesource.com/v8/v8/+/cbd8f4269f91e8ade38876092b433bda9ddb89a9 https://chromium-review.googlesource.com/c/1460952 * Remove use of deprecated non-context version of Function::Call The use of the non-maybe version of Function::Call has been deprecated for a while now[1][2]. This commit replaces calls to it with calls to the Maybe version and adds unwrapping. [1] v8/v8@66969fb https://chromium.googlesource.com/v8/v8/+/66969fb2ad6161d2d1da87cdd6fb50e1e6c970e5 https://codereview.chromium.org/993883002 [2] v8/v8@cbd8f42 https://chromium.googlesource.com/v8/v8/+/cbd8f4269f91e8ade38876092b433bda9ddb89a9 https://chromium-review.googlesource.com/c/v8/v8/+/1460952 * Remove use of the deprecated non-maybe FunctionTemplate::GetFunction API The mentioned method has been deprecated for a while[1][2]. This commit replaces its use with use of the Maybe version and adds unwrapping. [1] v8/v8@5234d99 https://chromium.googlesource.com/v8/v8/+/5234d9977d637668e66b9e2e9f0456c6f97f749e https://codereview.chromium.org/993223003 [2] v8/v8@6f5e805 https://chromium.googlesource.com/v8/v8/+/6f5e8052847fc41df98a1e8f19211f399c6afc18 https://chromium-review.googlesource.com/c/v8/v8/+/1450115
- Loading branch information