diff options
| author | 2021-08-03 19:04:24 -0700 | |
|---|---|---|
| committer | 2021-08-03 19:04:24 -0700 | |
| commit | 58fd17867d661a8eb162efec7d39a6ab1c0fd6fd (patch) | |
| tree | 1ad2e204087b8b77900d7a26147c58752560b86d /src/javascript/jsc/bindings/bindings.cpp | |
| parent | 3b684308c3153a6ca84faa0fecc49b76bbf941a8 (diff) | |
| download | bun-58fd17867d661a8eb162efec7d39a6ab1c0fd6fd.tar.gz bun-58fd17867d661a8eb162efec7d39a6ab1c0fd6fd.tar.zst bun-58fd17867d661a8eb162efec7d39a6ab1c0fd6fd.zip | |
Threader
Former-commit-id: a13dd6402f54527e87e9afdbbf48e5ff1501c8f9
Diffstat (limited to 'src/javascript/jsc/bindings/bindings.cpp')
| -rw-r--r-- | src/javascript/jsc/bindings/bindings.cpp | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/src/javascript/jsc/bindings/bindings.cpp b/src/javascript/jsc/bindings/bindings.cpp index c38cb2bb0..6d08f3854 100644 --- a/src/javascript/jsc/bindings/bindings.cpp +++ b/src/javascript/jsc/bindings/bindings.cpp @@ -437,60 +437,66 @@ void JSC__SourceCode__fromString(JSC__SourceCode *arg0, const WTF__String *arg1, JSC__JSValue JSC__JSFunction__callWithArguments(JSC__JSValue JSValue0, JSC__JSGlobalObject *arg1, JSC__JSValue *arg2, size_t arg3, - JSC__Exception **arg4, const char *arg5) { + JSC__Exception **arg4, const unsigned char *arg5) { auto args = makeArgs(arg2, arg3); - return JSC::JSValue::encode( - JSC::call(arg1, JSC::JSValue::decode(JSValue0), JSC::JSValue::decode(JSValue0), args, arg5)); + return JSC::JSValue::encode(JSC::call(arg1, JSC::JSValue::decode(JSValue0), + JSC::JSValue::decode(JSValue0), args, (const char *)arg5)); } JSC__JSValue JSC__JSFunction__callWithArgumentsAndThis(JSC__JSValue JSValue0, JSC__JSValue JSValue1, JSC__JSGlobalObject *arg2, JSC__JSValue *arg3, size_t arg4, - JSC__Exception **arg5, const char *arg6) { + JSC__Exception **arg5, + const unsigned char *arg6) { auto args = makeArgs(arg3, arg4); - return JSC::JSValue::encode( - JSC::call(arg2, JSC::JSValue::decode(JSValue0), JSC::JSValue::decode(JSValue1), args, arg6)); + return JSC::JSValue::encode(JSC::call(arg2, JSC::JSValue::decode(JSValue0), + JSC::JSValue::decode(JSValue1), args, (const char *)arg6)); } JSC__JSValue JSC__JSFunction__callWithoutAnyArgumentsOrThis(JSC__JSValue JSValue0, JSC__JSGlobalObject *arg1, JSC__Exception **arg2, - const char *arg3) { + const unsigned char *arg3) { return JSC::JSValue::encode(JSC::call(arg1, JSC::JSValue::decode(JSValue0), - JSC::JSValue::decode(JSValue0), JSC::ArgList(), arg3)); + JSC::JSValue::decode(JSValue0), JSC::ArgList(), + (const char *)arg3)); } JSC__JSValue JSC__JSFunction__callWithThis(JSC__JSValue JSValue0, JSC__JSGlobalObject *arg1, JSC__JSValue JSValue2, JSC__Exception **arg3, - const char *arg4) { + const unsigned char *arg4) { return JSC::JSValue::encode(JSC::call(arg1, JSC::JSValue::decode(JSValue0), - JSC::JSValue::decode(JSValue2), JSC::ArgList(), arg4)); + JSC::JSValue::decode(JSValue2), JSC::ArgList(), + (const char *)arg4)); } JSC__JSValue JSC__JSFunction__constructWithArguments(JSC__JSValue JSValue0, JSC__JSGlobalObject *arg1, JSC__JSValue *arg2, size_t arg3, JSC__Exception **arg4, - const char *arg5) { + const unsigned char *arg5) { auto args = makeArgs(arg2, arg3); - return JSC::JSValue::encode(JSC::construct(arg1, JSC::JSValue::decode(JSValue0), args, arg5)); + return JSC::JSValue::encode( + JSC::construct(arg1, JSC::JSValue::decode(JSValue0), args, (const char *)arg5)); } JSC__JSValue JSC__JSFunction__constructWithArgumentsAndNewTarget( JSC__JSValue JSValue0, JSC__JSValue JSValue1, JSC__JSGlobalObject *arg2, JSC__JSValue *arg3, - size_t arg4, JSC__Exception **arg5, const char *arg6) { + size_t arg4, JSC__Exception **arg5, const unsigned char *arg6) { auto args = makeArgs(arg3, arg4); return JSC::JSValue::encode(JSC::construct(arg2, JSC::JSValue::decode(JSValue0), - JSC::JSValue::decode(JSValue0), args, arg6)); + JSC::JSValue::decode(JSValue0), args, + (const char *)arg6)); } JSC__JSValue JSC__JSFunction__constructWithNewTarget(JSC__JSValue JSValue0, JSC__JSGlobalObject *arg1, JSC__JSValue JSValue2, JSC__Exception **arg3, - const char *arg4) { + const unsigned char *arg4) { return JSC::JSValue::encode(JSC::construct(arg1, JSC::JSValue::decode(JSValue0), - JSC::JSValue::decode(JSValue2), JSC::ArgList(), arg4)); + JSC::JSValue::decode(JSValue2), JSC::ArgList(), + (const char *)arg4)); } JSC__JSValue JSC__JSFunction__constructWithoutAnyArgumentsOrNewTarget(JSC__JSValue JSValue0, JSC__JSGlobalObject *arg1, JSC__Exception **arg2, - const char *arg3) { + const unsigned char *arg3) { return JSC::JSValue::encode( - JSC::construct(arg1, JSC::JSValue::decode(JSValue0), JSC::ArgList(), arg3)); + JSC::construct(arg1, JSC::JSValue::decode(JSValue0), JSC::ArgList(), (const char *)arg3)); } JSC__JSFunction *JSC__JSFunction__createFromNative(JSC__JSGlobalObject *arg0, uint16_t arg1, |
