From 27e40b0836f183430e5ac7128d9046c561c07e73 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sun, 11 Dec 2022 16:14:53 -0800 Subject: Update WebKit cc @cirospaciari you will need to re-download the precompiled WebKit build from the releases page https://github.com/oven-sh/WebKit/releases/tag/dec11 because there is one small WebKit API change. LMK if you have any trouble with that --- src/bun.js/bindings/wtf-bindings.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/bun.js/bindings/wtf-bindings.cpp') diff --git a/src/bun.js/bindings/wtf-bindings.cpp b/src/bun.js/bindings/wtf-bindings.cpp index 699e3db5b..5c0e593d7 100644 --- a/src/bun.js/bindings/wtf-bindings.cpp +++ b/src/bun.js/bindings/wtf-bindings.cpp @@ -2,6 +2,12 @@ #include "wtf/text/Base64.h" #include "wtf/StackTrace.h" +#include "wtf/dtoa.h" + +extern "C" double WTF__parseDouble(const LChar* string, size_t length, size_t* position) +{ + return WTF::parseDouble(string, length, *position); +} extern "C" void WTF__copyLCharsFromUCharSource(LChar* destination, const UChar* source, size_t length) { @@ -27,7 +33,7 @@ extern "C" void Bun__crashReportDumpStackTrace(void* ctx) bool isFirst = true; for (int frameNumber = 0; frameNumber < size; ++frameNumber) { auto demangled = WTF::StackTraceSymbolResolver::demangle(stack[frameNumber]); - + StringPrintStream out; if (isFirst) { isFirst = false; -- cgit v1.2.3