Skip to content

Commit

Permalink
Bump WebKit (#14812)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner authored Oct 25, 2024
1 parent eb6995e commit 35a64d8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cmake/tools/SetupWebKit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ option(WEBKIT_VERSION "The version of WebKit to use")
option(WEBKIT_LOCAL "If a local version of WebKit should be used instead of downloading")

if(NOT WEBKIT_VERSION)
set(WEBKIT_VERSION 543cca2140eafdba845f6689024abaac0d9924f5)
set(WEBKIT_VERSION 9b84f43643eff64ab46daec9b860de262c80f5e2)
endif()

if(WEBKIT_LOCAL)
Expand Down
4 changes: 3 additions & 1 deletion src/bun.js/bindings/DoubleFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
#include "JavaScriptCore/JSGlobalObjectFunctions.h"
#include <cstring>

using namespace WTF;

/// Must be called with a buffer of exactly 124
/// Find the length by scanning for the 0
extern "C" size_t WTF__dtoa(char* buf_124_bytes, double number)
{
NumberToStringBuffer& buf = *reinterpret_cast<NumberToStringBuffer*>(buf_124_bytes);
return WTF::numberToStringAndSize(number, buf);
return WTF::numberToStringAndSize(number, buf).size();
}

/// This is the equivalent of the unary '+' operator on a JS string
Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/bindings/ProcessIdentifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
namespace WebCore {

enum class ProcessIdentifierType {};
using ProcessIdentifier = LegacyNullableObjectIdentifier<ProcessIdentifierType>;
using ProcessIdentifier = ObjectIdentifier<ProcessIdentifierType>;

namespace Process {

Expand Down
23 changes: 12 additions & 11 deletions src/bun.js/bindings/bindings.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3734,17 +3734,18 @@ pub const JSValue = enum(JSValueReprInt) {
StringIterator = 70,
WrapForValidIterator = 71,
RegExpStringIterator = 72,
JSPromise = 73,
Map = 74,
Set = 75,
WeakMap = 76,
WeakSet = 77,
WebAssemblyModule = 78,
WebAssemblyInstance = 79,
WebAssemblyGCObject = 80,
StringObject = 81,
DerivedStringObject = 82,
InternalFieldTuple = 83,
AsyncFromSyncIterator = 73,
JSPromise = 74,
Map = 75,
Set = 76,
WeakMap = 77,
WeakSet = 78,
WebAssemblyModule = 79,
WebAssemblyInstance = 80,
WebAssemblyGCObject = 81,
StringObject = 82,
DerivedStringObject = 83,
InternalFieldTuple = 84,

MaxJS = 0b11111111,
Event = 0b11101111,
Expand Down

0 comments on commit 35a64d8

Please sign in to comment.