diff --git a/src/bun.js/bindings/webcore/JSDOMURL.cpp b/src/bun.js/bindings/webcore/JSDOMURL.cpp old mode 100644 new mode 100755 index b296575100e55e..87994d289a1e09 --- a/src/bun.js/bindings/webcore/JSDOMURL.cpp +++ b/src/bun.js/bindings/webcore/JSDOMURL.cpp @@ -132,7 +132,7 @@ using JSDOMURLDOMConstructor = JSDOMConstructor; static const HashTableValue JSDOMURLConstructorTableValues[] = { { "createObjectURL"_s, static_cast(JSC::PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, jsDOMURLConstructorFunction_createObjectURL, 1 } }, { "revokeObjectURL"_s, static_cast(JSC::PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, jsDOMURLConstructorFunction_revokeObjectURL, 1 } }, - { "canParse"_s, static_cast(JSC::PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, jsDOMURLConstructorFunction_canParse, 2 } }, + { "canParse"_s, static_cast(JSC::PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, jsDOMURLConstructorFunction_canParse, 1 } }, }; static inline JSC::EncodedJSValue constructJSDOMURL1(JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame) diff --git a/test/js/web/url/url.test.ts b/test/js/web/url/url.test.ts old mode 100644 new mode 100755 index c467f549f442f8..88a182a009c624 --- a/test/js/web/url/url.test.ts +++ b/test/js/web/url/url.test.ts @@ -226,5 +226,9 @@ describe("url", () => { expect(URL.canParse(url, base)).toBe(expected); }); }); + + it("URL.canParse.length should be 1", () => { + expect(URL.canParse.length).toBe(1); + }); }); });