Pass node querystring tests (#15695)

This commit is contained in:
pfg
2024-12-11 17:39:46 -08:00
committed by GitHub
parent 667821c53a
commit 0e8f075191
6 changed files with 999 additions and 324 deletions

View File

@@ -47,6 +47,9 @@ static JSC::JSObject* createErrorPrototype(JSC::VM& vm, JSC::JSGlobalObject* glo
case JSC::ErrorType::Error:
prototype = JSC::constructEmptyObject(globalObject, globalObject->errorPrototype());
break;
case JSC::ErrorType::URIError:
prototype = JSC::constructEmptyObject(globalObject, globalObject->m_URIErrorStructure.prototype(globalObject));
break;
default: {
RELEASE_ASSERT_NOT_REACHED_WITH_MESSAGE("TODO: Add support for more error types");
break;