Changeset 203858 in webkit


Ignore:
Timestamp:
Jul 28, 2016 11:45:21 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Binding generator should expose the visible interface name in error messages
https://bugs.webkit.org/show_bug.cgi?id=160192

Source/WebCore:

Patch by Youenn Fablet <youenn@apple.com> on 2016-07-28
Reviewed by Darin Adler.

Covered by updated layout and binding tests.

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateImplementation): Using visibleInterfaceName instead of interfaceName.
(GenerateFunctionCastedThis): Ditto.
(GenerateParametersCheck): Ditto.
(GenerateConstructorDefinition): Ditto.

  • bindings/scripts/test/JS/JSTestObj.cpp: Rebased.
  • bindings/scripts/test/TestObj.idl: Adding ConstructorCallWith to exercice change in GenerateConstructorDefinition.

LayoutTests:

Patch by Youenn Fablet <youennf@gmail.com> on 2016-07-28
Reviewed by Darin Adler.

  • editing/selection/extend-expected.txt:
  • fast/dom/Window/getComputedStyle-missing-parameter-expected.txt:
  • fast/dom/Window/getComputedStyle-missing-parameter.html:
  • fetch/fetch-error-messages-expected.txt:
  • fetch/fetch-error-messages.html: Adding test for Request.
  • js/dom/toString-and-valueOf-override-expected.txt:
  • js/getOwnPropertyDescriptor-unforgeable-attributes-expected.txt:
  • js/getOwnPropertyDescriptor-window-attributes-expected.txt:
  • media/encrypted-media/encrypted-media-v2-syntax-expected.txt:
  • media/encrypted-media/encrypted-media-v2-syntax.html:
  • webaudio/createMediaStreamSource-null-expected.txt:
  • webaudio/createMediaStreamSource-null.html:
  • webaudio/decode-audio-data-basic-expected.txt:
  • webaudio/decode-audio-data-basic.html:
  • webaudio/mediaelementaudiosourcenode-expected.txt:
  • webaudio/mediaelementaudiosourcenode.html:
Location:
trunk
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r203852 r203858  
     12016-07-28  Youenn Fablet  <youennf@gmail.com>
     2
     3        Binding generator should expose the visible interface name in error messages
     4        https://bugs.webkit.org/show_bug.cgi?id=160192
     5
     6        Reviewed by Darin Adler.
     7
     8        * editing/selection/extend-expected.txt:
     9        * fast/dom/Window/getComputedStyle-missing-parameter-expected.txt:
     10        * fast/dom/Window/getComputedStyle-missing-parameter.html:
     11        * fetch/fetch-error-messages-expected.txt:
     12        * fetch/fetch-error-messages.html: Adding test for Request.
     13        * js/dom/toString-and-valueOf-override-expected.txt:
     14        * js/getOwnPropertyDescriptor-unforgeable-attributes-expected.txt:
     15        * js/getOwnPropertyDescriptor-window-attributes-expected.txt:
     16        * media/encrypted-media/encrypted-media-v2-syntax-expected.txt:
     17        * media/encrypted-media/encrypted-media-v2-syntax.html:
     18        * webaudio/createMediaStreamSource-null-expected.txt:
     19        * webaudio/createMediaStreamSource-null.html:
     20        * webaudio/decode-audio-data-basic-expected.txt:
     21        * webaudio/decode-audio-data-basic.html:
     22        * webaudio/mediaelementaudiosourcenode-expected.txt:
     23        * webaudio/mediaelementaudiosourcenode.html:
     24
    1252016-07-28  Chris Dumez  <cdumez@apple.com>
    226
  • trunk/LayoutTests/editing/selection/extend-expected.txt

    r203333 r203858  
    66Success: window.getSelection() is arbaz.
    77Success: s.extend() raised TypeError: Not enough arguments.
    8 Success: s.extend(null, 0) raised TypeError: Argument 1 ('node') to DOMSelection.extend must be an instance of Node.
     8Success: s.extend(null, 0) raised TypeError: Argument 1 ('node') to Selection.extend must be an instance of Node.
  • trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter-expected.txt

    r203623 r203858  
    55
    66PASS window.getComputedStyle() threw exception TypeError: Not enough arguments.
    7 PASS window.getComputedStyle(null) threw exception TypeError: Argument 1 ('element') to DOMWindow.getComputedStyle must be an instance of Element.
     7PASS window.getComputedStyle(null) threw exception TypeError: Argument 1 ('element') to Window.getComputedStyle must be an instance of Element.
    88PASS successfullyParsed is true
    99
  • trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter.html

    r203623 r203858  
    77
    88shouldThrow("window.getComputedStyle()", "'TypeError: Not enough arguments'");
    9 shouldThrow("window.getComputedStyle(null)", "'TypeError: Argument 1 (\\'element\\') to DOMWindow.getComputedStyle must be an instance of Element'");
     9shouldThrow("window.getComputedStyle(null)", "'TypeError: Argument 1 (\\'element\\') to Window.getComputedStyle must be an instance of Element'");
    1010</script>
    1111<script src="../../../resources/js-test-post.js"></script>
  • trunk/LayoutTests/fetch/fetch-error-messages-expected.txt

    r203766 r203858  
    11CONSOLE MESSAGE: line 11: TypeError: The Response.body getter can only be used on instances of Response
     2CONSOLE MESSAGE: line 11: TypeError: The Request.method getter can only be used on instances of Request
     3CONSOLE MESSAGE: line 11: TypeError: Can only call Request.clone on instances of Request
    24
    35PASS Exercising TypeError messages in Fetch Response
  • trunk/LayoutTests/fetch/fetch-error-messages.html

    r203766 r203858  
    2626
    2727    printGetterError(response, "body", request);
     28    printGetterError(request, "method", response);
     29    printMethodError(request.clone, response);
    2830
    2931}, "Exercising TypeError messages in Fetch Response");
  • trunk/LayoutTests/js/dom/toString-and-valueOf-override-expected.txt

    r181901 r203858  
    393393String([Selection]) :
    394394Selection.toString : function toString() { [native code] }
    395 TypeError: Can only call DOMSelection.toString on instances of DOMSelection
     395TypeError: Can only call Selection.toString on instances of Selection
    396396Selection.toString() :
    397397[Selection].toString() :
  • trunk/LayoutTests/js/getOwnPropertyDescriptor-unforgeable-attributes-expected.txt

    r196374 r203858  
    9696PASS descriptor.enumerable is true
    9797PASS descriptor.configurable is false
    98 PASS descriptor.get.call(invalidObject) threw exception TypeError: The DOMWindow.location getter can only be used on instances of DOMWindow.
     98PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.location getter can only be used on instances of Window.
    9999PASS descriptor.get.call(window) === window.location is true
    100100
     
    104104PASS descriptor.enumerable is true
    105105PASS descriptor.configurable is false
    106 PASS descriptor.get.call(invalidObject) threw exception TypeError: The DOMWindow.window getter can only be used on instances of DOMWindow.
     106PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.window getter can only be used on instances of Window.
    107107PASS descriptor.get.call(window) === window.window is true
    108108
     
    112112PASS descriptor.enumerable is true
    113113PASS descriptor.configurable is false
    114 PASS descriptor.get.call(invalidObject) threw exception TypeError: The DOMWindow.top getter can only be used on instances of DOMWindow.
     114PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.top getter can only be used on instances of Window.
    115115PASS descriptor.get.call(window) === window.top is true
    116116
     
    120120PASS descriptor.enumerable is true
    121121PASS descriptor.configurable is false
    122 PASS descriptor.get.call(invalidObject) threw exception TypeError: The DOMWindow.document getter can only be used on instances of DOMWindow.
     122PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.document getter can only be used on instances of Window.
    123123PASS successfullyParsed is true
    124124
  • trunk/LayoutTests/js/getOwnPropertyDescriptor-window-attributes-expected.txt

    r196797 r203858  
    99PASS descriptor.enumerable is true
    1010PASS descriptor.configurable is true
    11 PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The DOMWindow.screen getter can only be used on instances of DOMWindow.
     11PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.screen getter can only be used on instances of Window.
    1212PASS descriptor.get.call(window) === window.screen is true
    1313PASS descriptor.get.call() === window.screen is true
     
    1818PASS descriptor.enumerable is true
    1919PASS descriptor.configurable is true
    20 PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The DOMWindow.navigator getter can only be used on instances of DOMWindow.
     20PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.navigator getter can only be used on instances of Window.
    2121PASS descriptor.get.call(window) === window.navigator is true
    2222PASS descriptor.get.call() === window.navigator is true
     
    2727PASS descriptor.enumerable is true
    2828PASS descriptor.configurable is true
    29 PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The DOMWindow.self getter can only be used on instances of DOMWindow.
     29PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.self getter can only be used on instances of Window.
    3030PASS descriptor.get.call(window) === window.self is true
    3131PASS descriptor.get.call() === window.self is true
     
    3636PASS descriptor.enumerable is true
    3737PASS descriptor.configurable is true
    38 PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The DOMWindow.frameElement getter can only be used on instances of DOMWindow.
     38PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.frameElement getter can only be used on instances of Window.
    3939PASS descriptor.get.call(window) === window.frameElement is true
    4040PASS descriptor.get.call() === window.frameElement is true
     
    4545PASS descriptor.enumerable is true
    4646PASS descriptor.configurable is true
    47 PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The DOMWindow.name getter can only be used on instances of DOMWindow.
     47PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.name getter can only be used on instances of Window.
    4848PASS descriptor.get.call(window) === window.name is true
    4949PASS descriptor.get.call() === window.name is true
  • trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt

    r200583 r203858  
    2323EXPECTED (mediaKeySession.onwebkitkeyerror == 'null') OK
    2424EXPECTED (mediaKeySession.onwebkitkeymessage == 'null') OK
    25 TEST(mediaKeySession.update(null)) THROWS('TypeError: Argument 1 (\'key\') to MediaKeySession.update must be an instance of Uint8Array') OK
     25TEST(mediaKeySession.update(null)) THROWS('TypeError: Argument 1 (\'key\') to WebKitMediaKeySession.update must be an instance of Uint8Array') OK
    2626END OF TEST
    2727
  • trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html

    r200583 r203858  
    4848                testExpected('mediaKeySession.onwebkitkeyerror', null);
    4949                testExpected('mediaKeySession.onwebkitkeymessage', null);
    50                 testException('mediaKeySession.update(null)', "'TypeError: Argument 1 (\\'key\\') to MediaKeySession.update must be an instance of Uint8Array'");
     50                testException('mediaKeySession.update(null)', "'TypeError: Argument 1 (\\'key\\') to WebKitMediaKeySession.update must be an instance of Uint8Array'");
    5151                endTest();
    5252            }
  • trunk/LayoutTests/webaudio/createMediaStreamSource-null-expected.txt

    r200583 r203858  
    44
    55
    6 PASS context.createMediaStreamSource(null) threw exception TypeError: Argument 1 ('mediaStream') to AudioContext.createMediaStreamSource must be an instance of MediaStream.
     6PASS context.createMediaStreamSource(null) threw exception TypeError: Argument 1 ('mediaStream') to webkitAudioContext.createMediaStreamSource must be an instance of MediaStream.
    77PASS successfullyParsed is true
    88
  • trunk/LayoutTests/webaudio/createMediaStreamSource-null.html

    r200583 r203858  
    1010
    1111var context = new webkitAudioContext();
    12 shouldThrow("context.createMediaStreamSource(null)", "'TypeError: Argument 1 (\\'mediaStream\\') to AudioContext.createMediaStreamSource must be an instance of MediaStream'");
     12shouldThrow("context.createMediaStreamSource(null)", "'TypeError: Argument 1 (\\'mediaStream\\') to webkitAudioContext.createMediaStreamSource must be an instance of MediaStream'");
    1313
    1414</script>
  • trunk/LayoutTests/webaudio/decode-audio-data-basic-expected.txt

    r200583 r203858  
    44
    55
    6 PASS context.decodeAudioData(null, function(){}, function(){}); threw exception TypeError: Argument 1 ('audioData') to AudioContext.decodeAudioData must be an instance of ArrayBuffer.
     6PASS context.decodeAudioData(null, function(){}, function(){}); threw exception TypeError: Argument 1 ('audioData') to webkitAudioContext.decodeAudioData must be an instance of ArrayBuffer.
    77PASS The resources/media/24bit-44khz.wav test: successCallback has been called correctly.
    88PASS The resources/media/invalid-audio-file.txt test: errorCallback has been called correctly.
  • trunk/LayoutTests/webaudio/decode-audio-data-basic.html

    r200583 r203858  
    1919
    2020// decodeAudioData should raise exception when arraybuffer parameter is null.
    21 shouldThrow("context.decodeAudioData(null, function(){}, function(){});", "'TypeError: Argument 1 (\\'audioData\\') to AudioContext.decodeAudioData must be an instance of ArrayBuffer'");
     21shouldThrow("context.decodeAudioData(null, function(){}, function(){});", "'TypeError: Argument 1 (\\'audioData\\') to webkitAudioContext.decodeAudioData must be an instance of ArrayBuffer'");
    2222
    2323var decodeCaseArray = [{url: "resources/media/24bit-44khz.wav", result: true},
  • trunk/LayoutTests/webaudio/mediaelementaudiosourcenode-expected.txt

    r200583 r203858  
    1010PASS audioNode.connect(context.destination) succeeded.
    1111PASS createMediaElementSource() threw error when called twice on same HTMLMediaElement.
    12 PASS context.createMediaElementSource(null) threw exception TypeError: Argument 1 ('mediaElement') to AudioContext.createMediaElementSource must be an instance of HTMLMediaElement.
     12PASS context.createMediaElementSource(null) threw exception TypeError: Argument 1 ('mediaElement') to webkitAudioContext.createMediaElementSource must be an instance of HTMLMediaElement.
    1313PASS successfullyParsed is true
    1414
  • trunk/LayoutTests/webaudio/mediaelementaudiosourcenode.html

    r200583 r203858  
    8080    }
    8181
    82     shouldThrow("context.createMediaElementSource(null)", "'TypeError: Argument 1 (\\'mediaElement\\') to AudioContext.createMediaElementSource must be an instance of HTMLMediaElement'");
     82    shouldThrow("context.createMediaElementSource(null)", "'TypeError: Argument 1 (\\'mediaElement\\') to webkitAudioContext.createMediaElementSource must be an instance of HTMLMediaElement'");
    8383
    8484    finishJSTest();
  • trunk/Source/WebCore/ChangeLog

    r203857 r203858  
     12016-07-28  Youenn Fablet  <youenn@apple.com>
     2
     3        Binding generator should expose the visible interface name in error messages
     4        https://bugs.webkit.org/show_bug.cgi?id=160192
     5
     6        Reviewed by Darin Adler.
     7
     8        Covered by updated layout and binding tests.
     9
     10        * bindings/scripts/CodeGeneratorJS.pm:
     11        (GenerateImplementation): Using visibleInterfaceName instead of interfaceName.
     12        (GenerateFunctionCastedThis): Ditto.
     13        (GenerateParametersCheck): Ditto.
     14        (GenerateConstructorDefinition): Ditto.
     15        * bindings/scripts/test/JS/JSTestObj.cpp: Rebased.
     16        * bindings/scripts/test/TestObj.idl: Adding ConstructorCallWith to exercice change in GenerateConstructorDefinition.
     17
    1182016-07-28  Carlos Garcia Campos  <cgarcia@igalia.com>
    219
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r203831 r203858  
    25702570                    push(@implContent, "        return JSValue::encode(jsUndefined());\n");
    25712571                } else {
    2572                     push(@implContent, "        return throwGetterTypeError(*state, \"$interfaceName\", \"$name\");\n");
     2572                    push(@implContent, "        return throwGetterTypeError(*state, \"$visibleInterfaceName\", \"$name\");\n");
    25732573                }
    25742574                push(@implContent, "    }\n");
     
    28612861                    push(@implContent, "        return false;\n");
    28622862                } else {
    2863                     push(@implContent, "        return throwSetterTypeError(*state, \"$interfaceName\", \"$name\");\n");
     2863                    push(@implContent, "        return throwSetterTypeError(*state, \"$visibleInterfaceName\", \"$name\");\n");
    28642864                }
    28652865                push(@implContent, "    }\n");
     
    29542954                    }
    29552955                    push(@implContent, "        if (UNLIKELY(!nativeValue)) {\n");
    2956                     push(@implContent, "            throwAttributeTypeError(*state, \"$interfaceName\", \"$name\", \"$type\");\n");
     2956                    push(@implContent, "            throwAttributeTypeError(*state, \"$visibleInterfaceName\", \"$name\", \"$type\");\n");
    29572957                    push(@implContent, "            return false;\n");
    29582958                    push(@implContent, "        }\n");
     
    29732973                if ($shouldPassByReference) {
    29742974                    push(@implContent, "    if (UNLIKELY(!nativeValue)) {\n");
    2975                     push(@implContent, "        throwAttributeTypeError(*state, \"$interfaceName\", \"$name\", \"$type\");\n");
     2975                    push(@implContent, "        throwAttributeTypeError(*state, \"$visibleInterfaceName\", \"$name\", \"$type\");\n");
    29762976                    push(@implContent, "        return false;\n");
    29772977                    push(@implContent, "    }\n");
     
    34693469            push(@implContent, "    auto castedThis = $castingHelper(thisValue);\n");
    34703470        }
     3471
     3472        my $visibleInterfaceName = $codeGenerator->GetVisibleInterfaceName($interface);
    34713473        my $domFunctionName = $function->signature->name;
    34723474        push(@implContent, "    if (UNLIKELY(!castedThis))\n");
    3473         push(@implContent, "        return throwThisTypeError(*state, \"$interfaceName\", \"$domFunctionName\");\n");
     3475        push(@implContent, "        return throwThisTypeError(*state, \"$visibleInterfaceName\", \"$domFunctionName\");\n");
    34743476    }
    34753477
     
    35943596
    35953597    my $interfaceName = $interface->name;
     3598    my $visibleInterfaceName = $codeGenerator->GetVisibleInterfaceName($interface);
    35963599    my @arguments;
    35973600    my $functionName;
     
    36623665                    push(@$outputArray, "        if (!state->uncheckedArgument($argumentIndex).isObject())\n");
    36633666                }
    3664                 push(@$outputArray, "            return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName);\n");
     3667                push(@$outputArray, "            return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName);\n");
    36653668                if ($function->isStatic) {
    36663669                    AddToImplIncludes("CallbackFunction.h");
     
    36763679                    push(@$outputArray, "    if (UNLIKELY(!state->argument($argumentIndex).isObject()))\n");
    36773680                }
    3678                 push(@$outputArray, "        return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName);\n");
     3681                push(@$outputArray, "        return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName);\n");
    36793682                if ($function->isStatic) {
    36803683                    AddToImplIncludes("CallbackFunction.h");
     
    36943697                push(@$outputArray, "        auto* item = JS${type}::toWrapped(state->uncheckedArgument(i));\n");
    36953698                push(@$outputArray, "        if (!item)\n");
    3696                 push(@$outputArray, "            return throwArgumentTypeError(*state, i, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$type\");\n");
     3699                push(@$outputArray, "            return throwArgumentTypeError(*state, i, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName, \"$type\");\n");
    36973700                push(@$outputArray, "        $name.uncheckedAppend(item);\n");
    36983701                push(@$outputArray, "    }\n")
     
    37373740            push(@$outputArray, "$indent        return JSValue::encode(jsUndefined());\n");
    37383741            push(@$outputArray, "$indent    if (UNLIKELY(!$optionalValue))\n");
    3739             push(@$outputArray, "$indent        return throwArgumentMustBeEnumError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName, expectedEnumerationValues<$className>());\n");
     3742            push(@$outputArray, "$indent        return throwArgumentMustBeEnumError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName, expectedEnumerationValues<$className>());\n");
    37403743            push(@$outputArray, "$indent    $name = optionalValue.value();\n") if $optionalValue ne $name;
    37413744
     
    37613764                }
    37623765                push(@$outputArray, "        if (UNLIKELY(!$name))\n");
    3763                 push(@$outputArray, "            return throwArgumentTypeError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$type\");\n");
     3766                push(@$outputArray, "            return throwArgumentTypeError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName, \"$type\");\n");
    37643767                push(@$outputArray, "    }\n");
    37653768            } else {
     
    38063809            if ($shouldPassByReference) {
    38073810                push(@$outputArray, "    if (UNLIKELY(!$name))\n");
    3808                 push(@$outputArray, "        return throwArgumentTypeError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$type\");\n");
     3811                push(@$outputArray, "        return throwArgumentTypeError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName, \"$type\");\n");
    38093812                $value = $isTearOff ? "$name->propertyReference()" : "*$name";
    38103813            }
     
    51345137                push(@$outputArray, "    ScriptExecutionContext* context = castedThis->scriptExecutionContext();\n");
    51355138                push(@$outputArray, "    if (UNLIKELY(!context))\n");
    5136                 push(@$outputArray, "        return throwConstructorDocumentUnavailableError(*state, \"${interfaceName}\");\n");
     5139                push(@$outputArray, "        return throwConstructorDocumentUnavailableError(*state, \"${visibleInterfaceName}\");\n");
    51375140            }
    51385141            if ($codeGenerator->ExtendedAttributeContains($interface->extendedAttributes->{"ConstructorCallWith"}, "Document")) {
     
    51415144                push(@$outputArray, "    ScriptExecutionContext* context = castedThis->scriptExecutionContext();\n");
    51425145                push(@$outputArray, "    if (UNLIKELY(!context))\n");
    5143                 push(@$outputArray, "        return throwConstructorDocumentUnavailableError(*state, \"${interfaceName}\");\n");
     5146                push(@$outputArray, "        return throwConstructorDocumentUnavailableError(*state, \"${visibleInterfaceName}\");\n");
    51445147                push(@$outputArray, "    ASSERT(context->isDocument());\n");
    51455148                push(@$outputArray, "    auto& document = downcast<Document>(*context);\n");
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp

    r203831 r203858  
    10141014        return throwVMError(state, createNotEnoughArgumentsError(state));
    10151015    if (UNLIKELY(!state->argument(0).isObject()))
    1016         return throwArgumentMustBeFunctionError(*state, 0, "testCallback", "TestObj", nullptr);
     1016        return throwArgumentMustBeFunctionError(*state, 0, "testCallback", "TestObject", nullptr);
    10171017    auto testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
    10181018    if (UNLIKELY(!state->argument(1).isFunction()))
    1019         return throwArgumentMustBeFunctionError(*state, 1, "testCallbackFunction", "TestObj", nullptr);
     1019        return throwArgumentMustBeFunctionError(*state, 1, "testCallbackFunction", "TestObject", nullptr);
    10201020    auto testCallbackFunction = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
    1021     auto object = TestObj::create(*testCallback, *testCallbackFunction);
     1021    ScriptExecutionContext* context = castedThis->scriptExecutionContext();
     1022    if (UNLIKELY(!context))
     1023        return throwConstructorDocumentUnavailableError(*state, "TestObject");
     1024    ASSERT(context->isDocument());
     1025    auto& document = downcast<Document>(*context);
     1026    auto object = TestObj::create(document, *testCallback, *testCallbackFunction);
    10221027    return JSValue::encode(asObject(toJSNewlyCreated(state, castedThis->globalObject(), WTFMove(object))));
    10231028}
     
    13861391    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    13871392    if (UNLIKELY(!castedThis)) {
    1388         return throwGetterTypeError(*state, "TestObj", "readOnlyLongAttr");
     1393        return throwGetterTypeError(*state, "TestObject", "readOnlyLongAttr");
    13891394    }
    13901395    auto& impl = castedThis->wrapped();
     
    14011406    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    14021407    if (UNLIKELY(!castedThis)) {
    1403         return throwGetterTypeError(*state, "TestObj", "readOnlyStringAttr");
     1408        return throwGetterTypeError(*state, "TestObject", "readOnlyStringAttr");
    14041409    }
    14051410    auto& impl = castedThis->wrapped();
     
    14161421    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    14171422    if (UNLIKELY(!castedThis)) {
    1418         return throwGetterTypeError(*state, "TestObj", "readOnlyTestObjAttr");
     1423        return throwGetterTypeError(*state, "TestObject", "readOnlyTestObjAttr");
    14191424    }
    14201425    auto& impl = castedThis->wrapped();
     
    14491454    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    14501455    if (UNLIKELY(!castedThis)) {
    1451         return throwGetterTypeError(*state, "TestObj", "TestSubObj");
     1456        return throwGetterTypeError(*state, "TestObject", "TestSubObj");
    14521457    }
    14531458    return JSValue::encode(JSTestSubObj::getConstructor(state->vm(), castedThis->globalObject()));
     
    14621467    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    14631468    if (UNLIKELY(!castedThis)) {
    1464         return throwGetterTypeError(*state, "TestObj", "TestSubObjEnabledBySetting");
     1469        return throwGetterTypeError(*state, "TestObject", "TestSubObjEnabledBySetting");
    14651470    }
    14661471    if (UNLIKELY(!castedThis->wrapped().frame()))
     
    14801485    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    14811486    if (UNLIKELY(!castedThis)) {
    1482         return throwGetterTypeError(*state, "TestObj", "enumAttr");
     1487        return throwGetterTypeError(*state, "TestObject", "enumAttr");
    14831488    }
    14841489    auto& impl = castedThis->wrapped();
     
    14951500    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    14961501    if (UNLIKELY(!castedThis)) {
    1497         return throwGetterTypeError(*state, "TestObj", "byteAttr");
     1502        return throwGetterTypeError(*state, "TestObject", "byteAttr");
    14981503    }
    14991504    auto& impl = castedThis->wrapped();
     
    15101515    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    15111516    if (UNLIKELY(!castedThis)) {
    1512         return throwGetterTypeError(*state, "TestObj", "octetAttr");
     1517        return throwGetterTypeError(*state, "TestObject", "octetAttr");
    15131518    }
    15141519    auto& impl = castedThis->wrapped();
     
    15251530    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    15261531    if (UNLIKELY(!castedThis)) {
    1527         return throwGetterTypeError(*state, "TestObj", "shortAttr");
     1532        return throwGetterTypeError(*state, "TestObject", "shortAttr");
    15281533    }
    15291534    auto& impl = castedThis->wrapped();
     
    15401545    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    15411546    if (UNLIKELY(!castedThis)) {
    1542         return throwGetterTypeError(*state, "TestObj", "clampedShortAttr");
     1547        return throwGetterTypeError(*state, "TestObject", "clampedShortAttr");
    15431548    }
    15441549    auto& impl = castedThis->wrapped();
     
    15551560    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    15561561    if (UNLIKELY(!castedThis)) {
    1557         return throwGetterTypeError(*state, "TestObj", "enforceRangeShortAttr");
     1562        return throwGetterTypeError(*state, "TestObject", "enforceRangeShortAttr");
    15581563    }
    15591564    auto& impl = castedThis->wrapped();
     
    15701575    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    15711576    if (UNLIKELY(!castedThis)) {
    1572         return throwGetterTypeError(*state, "TestObj", "unsignedShortAttr");
     1577        return throwGetterTypeError(*state, "TestObject", "unsignedShortAttr");
    15731578    }
    15741579    auto& impl = castedThis->wrapped();
     
    15851590    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    15861591    if (UNLIKELY(!castedThis)) {
    1587         return throwGetterTypeError(*state, "TestObj", "longAttr");
     1592        return throwGetterTypeError(*state, "TestObject", "longAttr");
    15881593    }
    15891594    auto& impl = castedThis->wrapped();
     
    16001605    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    16011606    if (UNLIKELY(!castedThis)) {
    1602         return throwGetterTypeError(*state, "TestObj", "longLongAttr");
     1607        return throwGetterTypeError(*state, "TestObject", "longLongAttr");
    16031608    }
    16041609    auto& impl = castedThis->wrapped();
     
    16151620    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    16161621    if (UNLIKELY(!castedThis)) {
    1617         return throwGetterTypeError(*state, "TestObj", "unsignedLongLongAttr");
     1622        return throwGetterTypeError(*state, "TestObject", "unsignedLongLongAttr");
    16181623    }
    16191624    auto& impl = castedThis->wrapped();
     
    16301635    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    16311636    if (UNLIKELY(!castedThis)) {
    1632         return throwGetterTypeError(*state, "TestObj", "stringAttr");
     1637        return throwGetterTypeError(*state, "TestObject", "stringAttr");
    16331638    }
    16341639    auto& impl = castedThis->wrapped();
     
    16451650    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    16461651    if (UNLIKELY(!castedThis)) {
    1647         return throwGetterTypeError(*state, "TestObj", "testObjAttr");
     1652        return throwGetterTypeError(*state, "TestObject", "testObjAttr");
    16481653    }
    16491654    auto& impl = castedThis->wrapped();
     
    16601665    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    16611666    if (UNLIKELY(!castedThis)) {
    1662         return throwGetterTypeError(*state, "TestObj", "testNullableObjAttr");
     1667        return throwGetterTypeError(*state, "TestObject", "testNullableObjAttr");
    16631668    }
    16641669    auto& impl = castedThis->wrapped();
     
    16901695    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    16911696    if (UNLIKELY(!castedThis)) {
    1692         return throwGetterTypeError(*state, "TestObj", "unforgeableAttr");
     1697        return throwGetterTypeError(*state, "TestObject", "unforgeableAttr");
    16931698    }
    16941699    auto& impl = castedThis->wrapped();
     
    17051710    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    17061711    if (UNLIKELY(!castedThis)) {
    1707         return throwGetterTypeError(*state, "TestObj", "stringAttrTreatingNullAsEmptyString");
     1712        return throwGetterTypeError(*state, "TestObject", "stringAttrTreatingNullAsEmptyString");
    17081713    }
    17091714    auto& impl = castedThis->wrapped();
     
    17201725    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    17211726    if (UNLIKELY(!castedThis)) {
    1722         return throwGetterTypeError(*state, "TestObj", "XMLObjAttr");
     1727        return throwGetterTypeError(*state, "TestObject", "XMLObjAttr");
    17231728    }
    17241729    auto& impl = castedThis->wrapped();
     
    17351740    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    17361741    if (UNLIKELY(!castedThis)) {
    1737         return throwGetterTypeError(*state, "TestObj", "create");
     1742        return throwGetterTypeError(*state, "TestObject", "create");
    17381743    }
    17391744    auto& impl = castedThis->wrapped();
     
    17501755    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    17511756    if (UNLIKELY(!castedThis)) {
    1752         return throwGetterTypeError(*state, "TestObj", "reflectedStringAttr");
     1757        return throwGetterTypeError(*state, "TestObject", "reflectedStringAttr");
    17531758    }
    17541759    auto& impl = castedThis->wrapped();
     
    17651770    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    17661771    if (UNLIKELY(!castedThis)) {
    1767         return throwGetterTypeError(*state, "TestObj", "reflectedIntegralAttr");
     1772        return throwGetterTypeError(*state, "TestObject", "reflectedIntegralAttr");
    17681773    }
    17691774    auto& impl = castedThis->wrapped();
     
    17801785    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    17811786    if (UNLIKELY(!castedThis)) {
    1782         return throwGetterTypeError(*state, "TestObj", "reflectedUnsignedIntegralAttr");
     1787        return throwGetterTypeError(*state, "TestObject", "reflectedUnsignedIntegralAttr");
    17831788    }
    17841789    auto& impl = castedThis->wrapped();
     
    17951800    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    17961801    if (UNLIKELY(!castedThis)) {
    1797         return throwGetterTypeError(*state, "TestObj", "reflectedBooleanAttr");
     1802        return throwGetterTypeError(*state, "TestObject", "reflectedBooleanAttr");
    17981803    }
    17991804    auto& impl = castedThis->wrapped();
     
    18101815    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    18111816    if (UNLIKELY(!castedThis)) {
    1812         return throwGetterTypeError(*state, "TestObj", "reflectedURLAttr");
     1817        return throwGetterTypeError(*state, "TestObject", "reflectedURLAttr");
    18131818    }
    18141819    auto& impl = castedThis->wrapped();
     
    18251830    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    18261831    if (UNLIKELY(!castedThis)) {
    1827         return throwGetterTypeError(*state, "TestObj", "reflectedStringAttr");
     1832        return throwGetterTypeError(*state, "TestObject", "reflectedStringAttr");
    18281833    }
    18291834    auto& impl = castedThis->wrapped();
     
    18401845    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    18411846    if (UNLIKELY(!castedThis)) {
    1842         return throwGetterTypeError(*state, "TestObj", "reflectedCustomIntegralAttr");
     1847        return throwGetterTypeError(*state, "TestObject", "reflectedCustomIntegralAttr");
    18431848    }
    18441849    auto& impl = castedThis->wrapped();
     
    18551860    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    18561861    if (UNLIKELY(!castedThis)) {
    1857         return throwGetterTypeError(*state, "TestObj", "reflectedCustomBooleanAttr");
     1862        return throwGetterTypeError(*state, "TestObject", "reflectedCustomBooleanAttr");
    18581863    }
    18591864    auto& impl = castedThis->wrapped();
     
    18701875    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    18711876    if (UNLIKELY(!castedThis)) {
    1872         return throwGetterTypeError(*state, "TestObj", "reflectedCustomURLAttr");
     1877        return throwGetterTypeError(*state, "TestObject", "reflectedCustomURLAttr");
    18731878    }
    18741879    auto& impl = castedThis->wrapped();
     
    18861891    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    18871892    if (UNLIKELY(!castedThis)) {
    1888         return throwGetterTypeError(*state, "TestObj", "enabledAtRuntimeAttribute");
     1893        return throwGetterTypeError(*state, "TestObject", "enabledAtRuntimeAttribute");
    18891894    }
    18901895    auto& impl = castedThis->wrapped();
     
    19021907    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    19031908    if (UNLIKELY(!castedThis)) {
    1904         return throwGetterTypeError(*state, "TestObj", "typedArrayAttr");
     1909        return throwGetterTypeError(*state, "TestObject", "typedArrayAttr");
    19051910    }
    19061911    auto& impl = castedThis->wrapped();
     
    19171922    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    19181923    if (UNLIKELY(!castedThis)) {
    1919         return throwGetterTypeError(*state, "TestObj", "attrWithGetterException");
     1924        return throwGetterTypeError(*state, "TestObject", "attrWithGetterException");
    19201925    }
    19211926    ExceptionCode ec = 0;
     
    19341939    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    19351940    if (UNLIKELY(!castedThis)) {
    1936         return throwGetterTypeError(*state, "TestObj", "attrWithGetterExceptionWithMessage");
     1941        return throwGetterTypeError(*state, "TestObject", "attrWithGetterExceptionWithMessage");
    19371942    }
    19381943    ExceptionCodeWithMessage ec;
     
    19511956    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    19521957    if (UNLIKELY(!castedThis)) {
    1953         return throwGetterTypeError(*state, "TestObj", "attrWithSetterException");
     1958        return throwGetterTypeError(*state, "TestObject", "attrWithSetterException");
    19541959    }
    19551960    auto& impl = castedThis->wrapped();
     
    19661971    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    19671972    if (UNLIKELY(!castedThis)) {
    1968         return throwGetterTypeError(*state, "TestObj", "attrWithSetterExceptionWithMessage");
     1973        return throwGetterTypeError(*state, "TestObject", "attrWithSetterExceptionWithMessage");
    19691974    }
    19701975    auto& impl = castedThis->wrapped();
     
    19811986    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    19821987    if (UNLIKELY(!castedThis)) {
    1983         return throwGetterTypeError(*state, "TestObj", "stringAttrWithGetterException");
     1988        return throwGetterTypeError(*state, "TestObject", "stringAttrWithGetterException");
    19841989    }
    19851990    ExceptionCode ec = 0;
     
    19982003    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    19992004    if (UNLIKELY(!castedThis)) {
    2000         return throwGetterTypeError(*state, "TestObj", "stringAttrWithSetterException");
     2005        return throwGetterTypeError(*state, "TestObject", "stringAttrWithSetterException");
    20012006    }
    20022007    auto& impl = castedThis->wrapped();
     
    20132018    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    20142019    if (UNLIKELY(!castedThis)) {
    2015         return throwGetterTypeError(*state, "TestObj", "strictTypeCheckingAttribute");
     2020        return throwGetterTypeError(*state, "TestObject", "strictTypeCheckingAttribute");
    20162021    }
    20172022    auto& impl = castedThis->wrapped();
     
    20282033    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    20292034    if (UNLIKELY(!castedThis)) {
    2030         return throwGetterTypeError(*state, "TestObj", "customAttr");
     2035        return throwGetterTypeError(*state, "TestObject", "customAttr");
    20312036    }
    20322037    return JSValue::encode(castedThis->customAttr(*state));
     
    20412046    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    20422047    if (UNLIKELY(!castedThis)) {
    2043         return throwGetterTypeError(*state, "TestObj", "onfoo");
     2048        return throwGetterTypeError(*state, "TestObject", "onfoo");
    20442049    }
    20452050    UNUSED_PARAM(state);
     
    20552060    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    20562061    if (UNLIKELY(!castedThis)) {
    2057         return throwGetterTypeError(*state, "TestObj", "onwebkitfoo");
     2062        return throwGetterTypeError(*state, "TestObject", "onwebkitfoo");
    20582063    }
    20592064    UNUSED_PARAM(state);
     
    20692074    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    20702075    if (UNLIKELY(!castedThis)) {
    2071         return throwGetterTypeError(*state, "TestObj", "withScriptStateAttribute");
     2076        return throwGetterTypeError(*state, "TestObject", "withScriptStateAttribute");
    20722077    }
    20732078    auto& impl = castedThis->wrapped();
     
    20842089    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    20852090    if (UNLIKELY(!castedThis)) {
    2086         return throwGetterTypeError(*state, "TestObj", "withCallWithAndSetterCallWithAttribute");
     2091        return throwGetterTypeError(*state, "TestObject", "withCallWithAndSetterCallWithAttribute");
    20872092    }
    20882093    auto& impl = castedThis->wrapped();
     
    20992104    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    21002105    if (UNLIKELY(!castedThis)) {
    2101         return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAttribute");
     2106        return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAttribute");
    21022107    }
    21032108    auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
     
    21172122    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    21182123    if (UNLIKELY(!castedThis)) {
    2119         return throwGetterTypeError(*state, "TestObj", "withScriptStateAttributeRaises");
     2124        return throwGetterTypeError(*state, "TestObject", "withScriptStateAttributeRaises");
    21202125    }
    21212126    ExceptionCode ec = 0;
     
    21342139    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    21352140    if (UNLIKELY(!castedThis)) {
    2136         return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAttributeRaises");
     2141        return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAttributeRaises");
    21372142    }
    21382143    ExceptionCode ec = 0;
     
    21542159    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    21552160    if (UNLIKELY(!castedThis)) {
    2156         return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
     2161        return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttribute");
    21572162    }
    21582163    auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
     
    21722177    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    21732178    if (UNLIKELY(!castedThis)) {
    2174         return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
     2179        return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttributeRaises");
    21752180    }
    21762181    ExceptionCode ec = 0;
     
    21922197    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    21932198    if (UNLIKELY(!castedThis)) {
    2194         return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
     2199        return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
    21952200    }
    21962201    auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
     
    22102215    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    22112216    if (UNLIKELY(!castedThis)) {
    2212         return throwGetterTypeError(*state, "TestObj", "withScriptArgumentsAndCallStackAttribute");
     2217        return throwGetterTypeError(*state, "TestObject", "withScriptArgumentsAndCallStackAttribute");
    22132218    }
    22142219    auto& impl = castedThis->wrapped();
     
    22262231    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    22272232    if (UNLIKELY(!castedThis)) {
    2228         return throwGetterTypeError(*state, "TestObj", "conditionalAttr1");
     2233        return throwGetterTypeError(*state, "TestObject", "conditionalAttr1");
    22292234    }
    22302235    auto& impl = castedThis->wrapped();
     
    22432248    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    22442249    if (UNLIKELY(!castedThis)) {
    2245         return throwGetterTypeError(*state, "TestObj", "conditionalAttr2");
     2250        return throwGetterTypeError(*state, "TestObject", "conditionalAttr2");
    22462251    }
    22472252    auto& impl = castedThis->wrapped();
     
    22602265    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    22612266    if (UNLIKELY(!castedThis)) {
    2262         return throwGetterTypeError(*state, "TestObj", "conditionalAttr3");
     2267        return throwGetterTypeError(*state, "TestObject", "conditionalAttr3");
    22632268    }
    22642269    auto& impl = castedThis->wrapped();
     
    22772282    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    22782283    if (UNLIKELY(!castedThis)) {
    2279         return throwGetterTypeError(*state, "TestObj", "conditionalAttr4");
     2284        return throwGetterTypeError(*state, "TestObject", "conditionalAttr4");
    22802285    }
    22812286    return JSValue::encode(JSTestObjectA::getConstructor(state->vm(), castedThis->globalObject()));
     
    22922297    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    22932298    if (UNLIKELY(!castedThis)) {
    2294         return throwGetterTypeError(*state, "TestObj", "conditionalAttr5");
     2299        return throwGetterTypeError(*state, "TestObject", "conditionalAttr5");
    22952300    }
    22962301    return JSValue::encode(JSTestObjectB::getConstructor(state->vm(), castedThis->globalObject()));
     
    23072312    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    23082313    if (UNLIKELY(!castedThis)) {
    2309         return throwGetterTypeError(*state, "TestObj", "conditionalAttr6");
     2314        return throwGetterTypeError(*state, "TestObject", "conditionalAttr6");
    23102315    }
    23112316    return JSValue::encode(JSTestObjectC::getConstructor(state->vm(), castedThis->globalObject()));
     
    23212326    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    23222327    if (UNLIKELY(!castedThis)) {
    2323         return throwGetterTypeError(*state, "TestObj", "cachedAttribute1");
     2328        return throwGetterTypeError(*state, "TestObject", "cachedAttribute1");
    23242329    }
    23252330    if (JSValue cachedValue = castedThis->m_cachedAttribute1.get())
     
    23392344    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    23402345    if (UNLIKELY(!castedThis)) {
    2341         return throwGetterTypeError(*state, "TestObj", "cachedAttribute2");
     2346        return throwGetterTypeError(*state, "TestObject", "cachedAttribute2");
    23422347    }
    23432348    if (JSValue cachedValue = castedThis->m_cachedAttribute2.get())
     
    23572362    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    23582363    if (UNLIKELY(!castedThis)) {
    2359         return throwGetterTypeError(*state, "TestObj", "anyAttribute");
     2364        return throwGetterTypeError(*state, "TestObject", "anyAttribute");
    23602365    }
    23612366    auto& impl = castedThis->wrapped();
     
    23722377    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    23732378    if (UNLIKELY(!castedThis)) {
    2374         return throwGetterTypeError(*state, "TestObj", "contentDocument");
     2379        return throwGetterTypeError(*state, "TestObject", "contentDocument");
    23752380    }
    23762381    auto& impl = castedThis->wrapped();
     
    23862391    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    23872392    if (UNLIKELY(!castedThis)) {
    2388         return throwGetterTypeError(*state, "TestObj", "mutablePoint");
     2393        return throwGetterTypeError(*state, "TestObject", "mutablePoint");
    23892394    }
    23902395    auto& impl = castedThis->wrapped();
     
    24012406    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    24022407    if (UNLIKELY(!castedThis)) {
    2403         return throwGetterTypeError(*state, "TestObj", "immutablePoint");
     2408        return throwGetterTypeError(*state, "TestObject", "immutablePoint");
    24042409    }
    24052410    auto& impl = castedThis->wrapped();
     
    24162421    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    24172422    if (UNLIKELY(!castedThis)) {
    2418         return throwGetterTypeError(*state, "TestObj", "strawberry");
     2423        return throwGetterTypeError(*state, "TestObject", "strawberry");
    24192424    }
    24202425    auto& impl = castedThis->wrapped();
     
    24312436    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    24322437    if (UNLIKELY(!castedThis)) {
    2433         return throwGetterTypeError(*state, "TestObj", "strictFloat");
     2438        return throwGetterTypeError(*state, "TestObject", "strictFloat");
    24342439    }
    24352440    auto& impl = castedThis->wrapped();
     
    24462451    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    24472452    if (UNLIKELY(!castedThis)) {
    2448         return throwGetterTypeError(*state, "TestObj", "description");
     2453        return throwGetterTypeError(*state, "TestObject", "description");
    24492454    }
    24502455    auto& impl = castedThis->wrapped();
     
    24612466    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    24622467    if (UNLIKELY(!castedThis)) {
    2463         return throwGetterTypeError(*state, "TestObj", "id");
     2468        return throwGetterTypeError(*state, "TestObject", "id");
    24642469    }
    24652470    auto& impl = castedThis->wrapped();
     
    24762481    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    24772482    if (UNLIKELY(!castedThis)) {
    2478         return throwGetterTypeError(*state, "TestObj", "hash");
     2483        return throwGetterTypeError(*state, "TestObject", "hash");
    24792484    }
    24802485    auto& impl = castedThis->wrapped();
     
    24912496    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    24922497    if (UNLIKELY(!castedThis)) {
    2493         return throwGetterTypeError(*state, "TestObj", "replaceableAttribute");
     2498        return throwGetterTypeError(*state, "TestObject", "replaceableAttribute");
    24942499    }
    24952500    auto& impl = castedThis->wrapped();
     
    25062511    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    25072512    if (UNLIKELY(!castedThis)) {
    2508         return throwGetterTypeError(*state, "TestObj", "nullableDoubleAttribute");
     2513        return throwGetterTypeError(*state, "TestObject", "nullableDoubleAttribute");
    25092514    }
    25102515    auto& impl = castedThis->wrapped();
     
    25212526    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    25222527    if (UNLIKELY(!castedThis)) {
    2523         return throwGetterTypeError(*state, "TestObj", "nullableLongAttribute");
     2528        return throwGetterTypeError(*state, "TestObject", "nullableLongAttribute");
    25242529    }
    25252530    auto& impl = castedThis->wrapped();
     
    25362541    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    25372542    if (UNLIKELY(!castedThis)) {
    2538         return throwGetterTypeError(*state, "TestObj", "nullableBooleanAttribute");
     2543        return throwGetterTypeError(*state, "TestObject", "nullableBooleanAttribute");
    25392544    }
    25402545    auto& impl = castedThis->wrapped();
     
    25512556    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    25522557    if (UNLIKELY(!castedThis)) {
    2553         return throwGetterTypeError(*state, "TestObj", "nullableStringAttribute");
     2558        return throwGetterTypeError(*state, "TestObject", "nullableStringAttribute");
    25542559    }
    25552560    auto& impl = castedThis->wrapped();
     
    25662571    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    25672572    if (UNLIKELY(!castedThis)) {
    2568         return throwGetterTypeError(*state, "TestObj", "nullableLongSettableAttribute");
     2573        return throwGetterTypeError(*state, "TestObject", "nullableLongSettableAttribute");
    25692574    }
    25702575    auto& impl = castedThis->wrapped();
     
    25812586    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    25822587    if (UNLIKELY(!castedThis)) {
    2583         return throwGetterTypeError(*state, "TestObj", "nullableStringSettableAttribute");
     2588        return throwGetterTypeError(*state, "TestObject", "nullableStringSettableAttribute");
    25842589    }
    25852590    auto& impl = castedThis->wrapped();
     
    25962601    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    25972602    if (UNLIKELY(!castedThis)) {
    2598         return throwGetterTypeError(*state, "TestObj", "nullableStringValue");
     2603        return throwGetterTypeError(*state, "TestObject", "nullableStringValue");
    25992604    }
    26002605    ExceptionCode ec = 0;
     
    26132618    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    26142619    if (UNLIKELY(!castedThis)) {
    2615         return throwGetterTypeError(*state, "TestObj", "attribute");
     2620        return throwGetterTypeError(*state, "TestObject", "attribute");
    26162621    }
    26172622    auto& impl = castedThis->wrapped();
     
    26282633    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    26292634    if (UNLIKELY(!castedThis)) {
    2630         return throwGetterTypeError(*state, "TestObj", "attributeWithReservedEnumType");
     2635        return throwGetterTypeError(*state, "TestObject", "attributeWithReservedEnumType");
    26312636    }
    26322637    auto& impl = castedThis->wrapped();
     
    26432648    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    26442649    if (UNLIKELY(!castedThis)) {
    2645         return throwGetterTypeError(*state, "TestObj", "putForwardsAttribute");
     2650        return throwGetterTypeError(*state, "TestObject", "putForwardsAttribute");
    26462651    }
    26472652    auto& impl = castedThis->wrapped();
     
    26582663    auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
    26592664    if (UNLIKELY(!castedThis)) {
    2660         return throwGetterTypeError(*state, "TestObj", "putForwardsNullableAttribute");
     2665        return throwGetterTypeError(*state, "TestObject", "putForwardsNullableAttribute");
    26612666    }
    26622667    auto& impl = castedThis->wrapped();
     
    27032708    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    27042709    if (UNLIKELY(!castedThis)) {
    2705         return throwSetterTypeError(*state, "TestObj", "TestSubObjEnabledBySetting");
     2710        return throwSetterTypeError(*state, "TestObject", "TestSubObjEnabledBySetting");
    27062711    }
    27072712    // Shadowing a built-in constructor.
     
    27162721    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    27172722    if (UNLIKELY(!castedThis)) {
    2718         return throwSetterTypeError(*state, "TestObj", "enumAttr");
     2723        return throwSetterTypeError(*state, "TestObject", "enumAttr");
    27192724    }
    27202725    auto& impl = castedThis->wrapped();
     
    27352740    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    27362741    if (UNLIKELY(!castedThis)) {
    2737         return throwSetterTypeError(*state, "TestObj", "byteAttr");
     2742        return throwSetterTypeError(*state, "TestObject", "byteAttr");
    27382743    }
    27392744    auto& impl = castedThis->wrapped();
     
    27522757    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    27532758    if (UNLIKELY(!castedThis)) {
    2754         return throwSetterTypeError(*state, "TestObj", "octetAttr");
     2759        return throwSetterTypeError(*state, "TestObject", "octetAttr");
    27552760    }
    27562761    auto& impl = castedThis->wrapped();
     
    27692774    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    27702775    if (UNLIKELY(!castedThis)) {
    2771         return throwSetterTypeError(*state, "TestObj", "shortAttr");
     2776        return throwSetterTypeError(*state, "TestObject", "shortAttr");
    27722777    }
    27732778    auto& impl = castedThis->wrapped();
     
    27862791    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    27872792    if (UNLIKELY(!castedThis)) {
    2788         return throwSetterTypeError(*state, "TestObj", "clampedShortAttr");
     2793        return throwSetterTypeError(*state, "TestObject", "clampedShortAttr");
    27892794    }
    27902795    auto& impl = castedThis->wrapped();
     
    28032808    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    28042809    if (UNLIKELY(!castedThis)) {
    2805         return throwSetterTypeError(*state, "TestObj", "enforceRangeShortAttr");
     2810        return throwSetterTypeError(*state, "TestObject", "enforceRangeShortAttr");
    28062811    }
    28072812    auto& impl = castedThis->wrapped();
     
    28202825    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    28212826    if (UNLIKELY(!castedThis)) {
    2822         return throwSetterTypeError(*state, "TestObj", "unsignedShortAttr");
     2827        return throwSetterTypeError(*state, "TestObject", "unsignedShortAttr");
    28232828    }
    28242829    auto& impl = castedThis->wrapped();
     
    28372842    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    28382843    if (UNLIKELY(!castedThis)) {
    2839         return throwSetterTypeError(*state, "TestObj", "longAttr");
     2844        return throwSetterTypeError(*state, "TestObject", "longAttr");
    28402845    }
    28412846    auto& impl = castedThis->wrapped();
     
    28542859    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    28552860    if (UNLIKELY(!castedThis)) {
    2856         return throwSetterTypeError(*state, "TestObj", "longLongAttr");
     2861        return throwSetterTypeError(*state, "TestObject", "longLongAttr");
    28572862    }
    28582863    auto& impl = castedThis->wrapped();
     
    28712876    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    28722877    if (UNLIKELY(!castedThis)) {
    2873         return throwSetterTypeError(*state, "TestObj", "unsignedLongLongAttr");
     2878        return throwSetterTypeError(*state, "TestObject", "unsignedLongLongAttr");
    28742879    }
    28752880    auto& impl = castedThis->wrapped();
     
    28882893    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    28892894    if (UNLIKELY(!castedThis)) {
    2890         return throwSetterTypeError(*state, "TestObj", "stringAttr");
     2895        return throwSetterTypeError(*state, "TestObject", "stringAttr");
    28912896    }
    28922897    auto& impl = castedThis->wrapped();
     
    29052910    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    29062911    if (UNLIKELY(!castedThis)) {
    2907         return throwSetterTypeError(*state, "TestObj", "testObjAttr");
     2912        return throwSetterTypeError(*state, "TestObject", "testObjAttr");
    29082913    }
    29092914    auto& impl = castedThis->wrapped();
    29102915    auto nativeValue = JSTestObj::toWrapped(value);
    29112916    if (UNLIKELY(!nativeValue)) {
    2912         throwAttributeTypeError(*state, "TestObj", "testObjAttr", "TestObj");
     2917        throwAttributeTypeError(*state, "TestObject", "testObjAttr", "TestObj");
    29132918        return false;
    29142919    }
     
    29242929    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    29252930    if (UNLIKELY(!castedThis)) {
    2926         return throwSetterTypeError(*state, "TestObj", "testNullableObjAttr");
     2931        return throwSetterTypeError(*state, "TestObject", "testNullableObjAttr");
    29272932    }
    29282933    auto& impl = castedThis->wrapped();
     
    29442949    auto nativeValue = JSTestObj::toWrapped(value);
    29452950    if (UNLIKELY(!nativeValue)) {
    2946         throwAttributeTypeError(*state, "TestObj", "lenientTestObjAttr", "TestObj");
     2951        throwAttributeTypeError(*state, "TestObject", "lenientTestObjAttr", "TestObj");
    29472952        return false;
    29482953    }
     
    29582963    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    29592964    if (UNLIKELY(!castedThis)) {
    2960         return throwSetterTypeError(*state, "TestObj", "stringAttrTreatingNullAsEmptyString");
     2965        return throwSetterTypeError(*state, "TestObject", "stringAttrTreatingNullAsEmptyString");
    29612966    }
    29622967    auto& impl = castedThis->wrapped();
     
    29752980    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    29762981    if (UNLIKELY(!castedThis)) {
    2977         return throwSetterTypeError(*state, "TestObj", "XMLObjAttr");
     2982        return throwSetterTypeError(*state, "TestObject", "XMLObjAttr");
    29782983    }
    29792984    auto& impl = castedThis->wrapped();
    29802985    auto nativeValue = JSTestObj::toWrapped(value);
    29812986    if (UNLIKELY(!nativeValue)) {
    2982         throwAttributeTypeError(*state, "TestObj", "XMLObjAttr", "TestObj");
     2987        throwAttributeTypeError(*state, "TestObject", "XMLObjAttr", "TestObj");
    29832988        return false;
    29842989    }
     
    29942999    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    29953000    if (UNLIKELY(!castedThis)) {
    2996         return throwSetterTypeError(*state, "TestObj", "create");
     3001        return throwSetterTypeError(*state, "TestObject", "create");
    29973002    }
    29983003    auto& impl = castedThis->wrapped();
     
    30113016    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    30123017    if (UNLIKELY(!castedThis)) {
    3013         return throwSetterTypeError(*state, "TestObj", "reflectedStringAttr");
     3018        return throwSetterTypeError(*state, "TestObject", "reflectedStringAttr");
    30143019    }
    30153020    auto& impl = castedThis->wrapped();
     
    30283033    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    30293034    if (UNLIKELY(!castedThis)) {
    3030         return throwSetterTypeError(*state, "TestObj", "reflectedIntegralAttr");
     3035        return throwSetterTypeError(*state, "TestObject", "reflectedIntegralAttr");
    30313036    }
    30323037    auto& impl = castedThis->wrapped();
     
    30453050    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    30463051    if (UNLIKELY(!castedThis)) {
    3047         return throwSetterTypeError(*state, "TestObj", "reflectedUnsignedIntegralAttr");
     3052        return throwSetterTypeError(*state, "TestObject", "reflectedUnsignedIntegralAttr");
    30483053    }
    30493054    auto& impl = castedThis->wrapped();
     
    30623067    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    30633068    if (UNLIKELY(!castedThis)) {
    3064         return throwSetterTypeError(*state, "TestObj", "reflectedBooleanAttr");
     3069        return throwSetterTypeError(*state, "TestObject", "reflectedBooleanAttr");
    30653070    }
    30663071    auto& impl = castedThis->wrapped();
     
    30793084    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    30803085    if (UNLIKELY(!castedThis)) {
    3081         return throwSetterTypeError(*state, "TestObj", "reflectedURLAttr");
     3086        return throwSetterTypeError(*state, "TestObject", "reflectedURLAttr");
    30823087    }
    30833088    auto& impl = castedThis->wrapped();
     
    30963101    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    30973102    if (UNLIKELY(!castedThis)) {
    3098         return throwSetterTypeError(*state, "TestObj", "reflectedStringAttr");
     3103        return throwSetterTypeError(*state, "TestObject", "reflectedStringAttr");
    30993104    }
    31003105    auto& impl = castedThis->wrapped();
     
    31133118    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    31143119    if (UNLIKELY(!castedThis)) {
    3115         return throwSetterTypeError(*state, "TestObj", "reflectedCustomIntegralAttr");
     3120        return throwSetterTypeError(*state, "TestObject", "reflectedCustomIntegralAttr");
    31163121    }
    31173122    auto& impl = castedThis->wrapped();
     
    31303135    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    31313136    if (UNLIKELY(!castedThis)) {
    3132         return throwSetterTypeError(*state, "TestObj", "reflectedCustomBooleanAttr");
     3137        return throwSetterTypeError(*state, "TestObject", "reflectedCustomBooleanAttr");
    31333138    }
    31343139    auto& impl = castedThis->wrapped();
     
    31473152    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    31483153    if (UNLIKELY(!castedThis)) {
    3149         return throwSetterTypeError(*state, "TestObj", "reflectedCustomURLAttr");
     3154        return throwSetterTypeError(*state, "TestObject", "reflectedCustomURLAttr");
    31503155    }
    31513156    auto& impl = castedThis->wrapped();
     
    31653170    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    31663171    if (UNLIKELY(!castedThis)) {
    3167         return throwSetterTypeError(*state, "TestObj", "enabledAtRuntimeAttribute");
     3172        return throwSetterTypeError(*state, "TestObject", "enabledAtRuntimeAttribute");
    31683173    }
    31693174    auto& impl = castedThis->wrapped();
     
    31833188    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    31843189    if (UNLIKELY(!castedThis)) {
    3185         return throwSetterTypeError(*state, "TestObj", "typedArrayAttr");
     3190        return throwSetterTypeError(*state, "TestObject", "typedArrayAttr");
    31863191    }
    31873192    auto& impl = castedThis->wrapped();
     
    31903195        return false;
    31913196    if (UNLIKELY(!nativeValue)) {
    3192         throwAttributeTypeError(*state, "TestObj", "typedArrayAttr", "Float32Array");
     3197        throwAttributeTypeError(*state, "TestObject", "typedArrayAttr", "Float32Array");
    31933198        return false;
    31943199    }
     
    32043209    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    32053210    if (UNLIKELY(!castedThis)) {
    3206         return throwSetterTypeError(*state, "TestObj", "attrWithGetterException");
     3211        return throwSetterTypeError(*state, "TestObject", "attrWithGetterException");
    32073212    }
    32083213    auto& impl = castedThis->wrapped();
     
    32213226    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    32223227    if (UNLIKELY(!castedThis)) {
    3223         return throwSetterTypeError(*state, "TestObj", "attrWithGetterExceptionWithMessage");
     3228        return throwSetterTypeError(*state, "TestObject", "attrWithGetterExceptionWithMessage");
    32243229    }
    32253230    auto& impl = castedThis->wrapped();
     
    32383243    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    32393244    if (UNLIKELY(!castedThis)) {
    3240         return throwSetterTypeError(*state, "TestObj", "attrWithSetterException");
     3245        return throwSetterTypeError(*state, "TestObject", "attrWithSetterException");
    32413246    }
    32423247    auto& impl = castedThis->wrapped();
     
    32573262    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    32583263    if (UNLIKELY(!castedThis)) {
    3259         return throwSetterTypeError(*state, "TestObj", "attrWithSetterExceptionWithMessage");
     3264        return throwSetterTypeError(*state, "TestObject", "attrWithSetterExceptionWithMessage");
    32603265    }
    32613266    auto& impl = castedThis->wrapped();
     
    32763281    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    32773282    if (UNLIKELY(!castedThis)) {
    3278         return throwSetterTypeError(*state, "TestObj", "stringAttrWithGetterException");
     3283        return throwSetterTypeError(*state, "TestObject", "stringAttrWithGetterException");
    32793284    }
    32803285    auto& impl = castedThis->wrapped();
     
    32933298    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    32943299    if (UNLIKELY(!castedThis)) {
    3295         return throwSetterTypeError(*state, "TestObj", "stringAttrWithSetterException");
     3300        return throwSetterTypeError(*state, "TestObject", "stringAttrWithSetterException");
    32963301    }
    32973302    auto& impl = castedThis->wrapped();
     
    33123317    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    33133318    if (UNLIKELY(!castedThis)) {
    3314         return throwSetterTypeError(*state, "TestObj", "strictTypeCheckingAttribute");
     3319        return throwSetterTypeError(*state, "TestObject", "strictTypeCheckingAttribute");
    33153320    }
    33163321    auto& impl = castedThis->wrapped();
     
    33193324        nativeValue = JSTestObj::toWrapped(value);
    33203325        if (UNLIKELY(!nativeValue)) {
    3321             throwAttributeTypeError(*state, "TestObj", "strictTypeCheckingAttribute", "TestObj");
     3326            throwAttributeTypeError(*state, "TestObject", "strictTypeCheckingAttribute", "TestObj");
    33223327            return false;
    33233328        }
     
    33343339    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    33353340    if (UNLIKELY(!castedThis)) {
    3336         return throwSetterTypeError(*state, "TestObj", "customAttr");
     3341        return throwSetterTypeError(*state, "TestObject", "customAttr");
    33373342    }
    33383343    castedThis->setCustomAttr(*state, value);
     
    33473352    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    33483353    if (UNLIKELY(!castedThis)) {
    3349         return throwSetterTypeError(*state, "TestObj", "onfoo");
     3354        return throwSetterTypeError(*state, "TestObject", "onfoo");
    33503355    }
    33513356    setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().fooEvent, value);
     
    33603365    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    33613366    if (UNLIKELY(!castedThis)) {
    3362         return throwSetterTypeError(*state, "TestObj", "onwebkitfoo");
     3367        return throwSetterTypeError(*state, "TestObject", "onwebkitfoo");
    33633368    }
    33643369    setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().fooEvent, value);
     
    33733378    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    33743379    if (UNLIKELY(!castedThis)) {
    3375         return throwSetterTypeError(*state, "TestObj", "withScriptStateAttribute");
     3380        return throwSetterTypeError(*state, "TestObject", "withScriptStateAttribute");
    33763381    }
    33773382    auto& impl = castedThis->wrapped();
     
    33903395    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    33913396    if (UNLIKELY(!castedThis)) {
    3392         return throwSetterTypeError(*state, "TestObj", "withCallWithAndSetterCallWithAttribute");
     3397        return throwSetterTypeError(*state, "TestObject", "withCallWithAndSetterCallWithAttribute");
    33933398    }
    33943399    auto& impl = castedThis->wrapped();
     
    34073412    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    34083413    if (UNLIKELY(!castedThis)) {
    3409         return throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAttribute");
     3414        return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAttribute");
    34103415    }
    34113416    auto& impl = castedThis->wrapped();
    34123417    auto nativeValue = JSTestObj::toWrapped(value);
    34133418    if (UNLIKELY(!nativeValue)) {
    3414         throwAttributeTypeError(*state, "TestObj", "withScriptExecutionContextAttribute", "TestObj");
     3419        throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAttribute", "TestObj");
    34153420        return false;
    34163421    }
     
    34293434    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    34303435    if (UNLIKELY(!castedThis)) {
    3431         return throwSetterTypeError(*state, "TestObj", "withScriptStateAttributeRaises");
     3436        return throwSetterTypeError(*state, "TestObject", "withScriptStateAttributeRaises");
    34323437    }
    34333438    auto& impl = castedThis->wrapped();
    34343439    auto nativeValue = JSTestObj::toWrapped(value);
    34353440    if (UNLIKELY(!nativeValue)) {
    3436         throwAttributeTypeError(*state, "TestObj", "withScriptStateAttributeRaises", "TestObj");
     3441        throwAttributeTypeError(*state, "TestObject", "withScriptStateAttributeRaises", "TestObj");
    34373442        return false;
    34383443    }
     
    34483453    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    34493454    if (UNLIKELY(!castedThis)) {
    3450         return throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAttributeRaises");
     3455        return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAttributeRaises");
    34513456    }
    34523457    auto& impl = castedThis->wrapped();
    34533458    auto nativeValue = JSTestObj::toWrapped(value);
    34543459    if (UNLIKELY(!nativeValue)) {
    3455         throwAttributeTypeError(*state, "TestObj", "withScriptExecutionContextAttributeRaises", "TestObj");
     3460        throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAttributeRaises", "TestObj");
    34563461        return false;
    34573462    }
     
    34703475    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    34713476    if (UNLIKELY(!castedThis)) {
    3472         return throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
     3477        return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttribute");
    34733478    }
    34743479    auto& impl = castedThis->wrapped();
    34753480    auto nativeValue = JSTestObj::toWrapped(value);
    34763481    if (UNLIKELY(!nativeValue)) {
    3477         throwAttributeTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttribute", "TestObj");
     3482        throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttribute", "TestObj");
    34783483        return false;
    34793484    }
     
    34923497    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    34933498    if (UNLIKELY(!castedThis)) {
    3494         return throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
     3499        return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttributeRaises");
    34953500    }
    34963501    auto& impl = castedThis->wrapped();
    34973502    auto nativeValue = JSTestObj::toWrapped(value);
    34983503    if (UNLIKELY(!nativeValue)) {
    3499         throwAttributeTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises", "TestObj");
     3504        throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttributeRaises", "TestObj");
    35003505        return false;
    35013506    }
     
    35143519    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    35153520    if (UNLIKELY(!castedThis)) {
    3516         return throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
     3521        return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
    35173522    }
    35183523    auto& impl = castedThis->wrapped();
    35193524    auto nativeValue = JSTestObj::toWrapped(value);
    35203525    if (UNLIKELY(!nativeValue)) {
    3521         throwAttributeTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute", "TestObj");
     3526        throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpacesAttribute", "TestObj");
    35223527        return false;
    35233528    }
     
    35363541    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    35373542    if (UNLIKELY(!castedThis)) {
    3538         return throwSetterTypeError(*state, "TestObj", "withScriptArgumentsAndCallStackAttribute");
     3543        return throwSetterTypeError(*state, "TestObject", "withScriptArgumentsAndCallStackAttribute");
    35393544    }
    35403545    auto& impl = castedThis->wrapped();
    35413546    auto nativeValue = JSTestObj::toWrapped(value);
    35423547    if (UNLIKELY(!nativeValue)) {
    3543         throwAttributeTypeError(*state, "TestObj", "withScriptArgumentsAndCallStackAttribute", "TestObj");
     3548        throwAttributeTypeError(*state, "TestObject", "withScriptArgumentsAndCallStackAttribute", "TestObj");
    35443549        return false;
    35453550    }
     
    35563561    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    35573562    if (UNLIKELY(!castedThis)) {
    3558         return throwSetterTypeError(*state, "TestObj", "conditionalAttr1");
     3563        return throwSetterTypeError(*state, "TestObject", "conditionalAttr1");
    35593564    }
    35603565    auto& impl = castedThis->wrapped();
     
    35753580    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    35763581    if (UNLIKELY(!castedThis)) {
    3577         return throwSetterTypeError(*state, "TestObj", "conditionalAttr2");
     3582        return throwSetterTypeError(*state, "TestObject", "conditionalAttr2");
    35783583    }
    35793584    auto& impl = castedThis->wrapped();
     
    35943599    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    35953600    if (UNLIKELY(!castedThis)) {
    3596         return throwSetterTypeError(*state, "TestObj", "conditionalAttr3");
     3601        return throwSetterTypeError(*state, "TestObject", "conditionalAttr3");
    35973602    }
    35983603    auto& impl = castedThis->wrapped();
     
    36133618    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    36143619    if (UNLIKELY(!castedThis)) {
    3615         return throwSetterTypeError(*state, "TestObj", "conditionalAttr4");
     3620        return throwSetterTypeError(*state, "TestObject", "conditionalAttr4");
    36163621    }
    36173622    // Shadowing a built-in constructor.
     
    36283633    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    36293634    if (UNLIKELY(!castedThis)) {
    3630         return throwSetterTypeError(*state, "TestObj", "conditionalAttr5");
     3635        return throwSetterTypeError(*state, "TestObject", "conditionalAttr5");
    36313636    }
    36323637    // Shadowing a built-in constructor.
     
    36433648    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    36443649    if (UNLIKELY(!castedThis)) {
    3645         return throwSetterTypeError(*state, "TestObj", "conditionalAttr6");
     3650        return throwSetterTypeError(*state, "TestObject", "conditionalAttr6");
    36463651    }
    36473652    // Shadowing a built-in constructor.
     
    36573662    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    36583663    if (UNLIKELY(!castedThis)) {
    3659         return throwSetterTypeError(*state, "TestObj", "anyAttribute");
     3664        return throwSetterTypeError(*state, "TestObject", "anyAttribute");
    36603665    }
    36613666    auto& impl = castedThis->wrapped();
     
    36723677    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    36733678    if (UNLIKELY(!castedThis)) {
    3674         return throwSetterTypeError(*state, "TestObj", "mutablePoint");
     3679        return throwSetterTypeError(*state, "TestObject", "mutablePoint");
    36753680    }
    36763681    auto& impl = castedThis->wrapped();
     
    36873692    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    36883693    if (UNLIKELY(!castedThis)) {
    3689         return throwSetterTypeError(*state, "TestObj", "immutablePoint");
     3694        return throwSetterTypeError(*state, "TestObject", "immutablePoint");
    36903695    }
    36913696    auto& impl = castedThis->wrapped();
     
    37023707    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    37033708    if (UNLIKELY(!castedThis)) {
    3704         return throwSetterTypeError(*state, "TestObj", "strawberry");
     3709        return throwSetterTypeError(*state, "TestObject", "strawberry");
    37053710    }
    37063711    auto& impl = castedThis->wrapped();
     
    37193724    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    37203725    if (UNLIKELY(!castedThis)) {
    3721         return throwSetterTypeError(*state, "TestObj", "strictFloat");
     3726        return throwSetterTypeError(*state, "TestObject", "strictFloat");
    37223727    }
    37233728    auto& impl = castedThis->wrapped();
     
    37363741    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    37373742    if (UNLIKELY(!castedThis)) {
    3738         return throwSetterTypeError(*state, "TestObj", "id");
     3743        return throwSetterTypeError(*state, "TestObject", "id");
    37393744    }
    37403745    auto& impl = castedThis->wrapped();
     
    37533758    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    37543759    if (UNLIKELY(!castedThis)) {
    3755         return throwSetterTypeError(*state, "TestObj", "replaceableAttribute");
     3760        return throwSetterTypeError(*state, "TestObject", "replaceableAttribute");
    37563761    }
    37573762    // Shadowing a built-in property.
     
    37663771    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    37673772    if (UNLIKELY(!castedThis)) {
    3768         return throwSetterTypeError(*state, "TestObj", "nullableLongSettableAttribute");
     3773        return throwSetterTypeError(*state, "TestObject", "nullableLongSettableAttribute");
    37693774    }
    37703775    auto& impl = castedThis->wrapped();
     
    37833788    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    37843789    if (UNLIKELY(!castedThis)) {
    3785         return throwSetterTypeError(*state, "TestObj", "nullableStringSettableAttribute");
     3790        return throwSetterTypeError(*state, "TestObject", "nullableStringSettableAttribute");
    37863791    }
    37873792    auto& impl = castedThis->wrapped();
     
    38003805    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    38013806    if (UNLIKELY(!castedThis)) {
    3802         return throwSetterTypeError(*state, "TestObj", "nullableStringValue");
     3807        return throwSetterTypeError(*state, "TestObject", "nullableStringValue");
    38033808    }
    38043809    auto& impl = castedThis->wrapped();
     
    38173822    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    38183823    if (UNLIKELY(!castedThis)) {
    3819         return throwSetterTypeError(*state, "TestObj", "attributeWithReservedEnumType");
     3824        return throwSetterTypeError(*state, "TestObject", "attributeWithReservedEnumType");
    38203825    }
    38213826    auto& impl = castedThis->wrapped();
     
    38363841    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    38373842    if (UNLIKELY(!castedThis)) {
    3838         return throwSetterTypeError(*state, "TestObj", "putForwardsAttribute");
     3843        return throwSetterTypeError(*state, "TestObject", "putForwardsAttribute");
    38393844    }
    38403845    Ref<TestNode> forwardedImpl = castedThis->wrapped().putForwardsAttribute();
     
    38543859    JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
    38553860    if (UNLIKELY(!castedThis)) {
    3856         return throwSetterTypeError(*state, "TestObj", "putForwardsNullableAttribute");
     3861        return throwSetterTypeError(*state, "TestObject", "putForwardsNullableAttribute");
    38573862    }
    38583863    RefPtr<TestNode> forwardedImpl = castedThis->wrapped().putForwardsNullableAttribute();
     
    38883893    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    38893894    if (UNLIKELY(!castedThis))
    3890         return throwThisTypeError(*state, "TestObj", "enabledAtRuntimeOperation");
     3895        return throwThisTypeError(*state, "TestObject", "enabledAtRuntimeOperation");
    38913896    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    38923897    auto& impl = castedThis->wrapped();
     
    39083913    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    39093914    if (UNLIKELY(!castedThis))
    3910         return throwThisTypeError(*state, "TestObj", "enabledAtRuntimeOperation");
     3915        return throwThisTypeError(*state, "TestObject", "enabledAtRuntimeOperation");
    39113916    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    39123917    auto& impl = castedThis->wrapped();
     
    39453950    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    39463951    if (UNLIKELY(!castedThis))
    3947         return throwThisTypeError(*state, "TestObj", "voidMethod");
     3952        return throwThisTypeError(*state, "TestObject", "voidMethod");
    39483953    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    39493954    auto& impl = castedThis->wrapped();
     
    39573962    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    39583963    if (UNLIKELY(!castedThis))
    3959         return throwThisTypeError(*state, "TestObj", "voidMethodWithArgs");
     3964        return throwThisTypeError(*state, "TestObject", "voidMethodWithArgs");
    39603965    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    39613966    auto& impl = castedThis->wrapped();
     
    39703975    auto objArg = JSTestObj::toWrapped(state->argument(2));
    39713976    if (UNLIKELY(!objArg))
    3972         return throwArgumentTypeError(*state, 2, "objArg", "TestObj", "voidMethodWithArgs", "TestObj");
     3977        return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "voidMethodWithArgs", "TestObj");
    39733978    impl.voidMethodWithArgs(WTFMove(longArg), WTFMove(strArg), *objArg);
    39743979    return JSValue::encode(jsUndefined());
     
    39803985    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    39813986    if (UNLIKELY(!castedThis))
    3982         return throwThisTypeError(*state, "TestObj", "byteMethod");
     3987        return throwThisTypeError(*state, "TestObject", "byteMethod");
    39833988    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    39843989    auto& impl = castedThis->wrapped();
     
    39923997    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    39933998    if (UNLIKELY(!castedThis))
    3994         return throwThisTypeError(*state, "TestObj", "byteMethodWithArgs");
     3999        return throwThisTypeError(*state, "TestObject", "byteMethodWithArgs");
    39954000    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    39964001    auto& impl = castedThis->wrapped();
     
    40054010    auto objArg = JSTestObj::toWrapped(state->argument(2));
    40064011    if (UNLIKELY(!objArg))
    4007         return throwArgumentTypeError(*state, 2, "objArg", "TestObj", "byteMethodWithArgs", "TestObj");
     4012        return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "byteMethodWithArgs", "TestObj");
    40084013    JSValue result = jsNumber(impl.byteMethodWithArgs(WTFMove(byteArg), WTFMove(strArg), *objArg));
    40094014    return JSValue::encode(result);
     
    40154020    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    40164021    if (UNLIKELY(!castedThis))
    4017         return throwThisTypeError(*state, "TestObj", "octetMethod");
     4022        return throwThisTypeError(*state, "TestObject", "octetMethod");
    40184023    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    40194024    auto& impl = castedThis->wrapped();
     
    40274032    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    40284033    if (UNLIKELY(!castedThis))
    4029         return throwThisTypeError(*state, "TestObj", "octetMethodWithArgs");
     4034        return throwThisTypeError(*state, "TestObject", "octetMethodWithArgs");
    40304035    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    40314036    auto& impl = castedThis->wrapped();
     
    40404045    auto objArg = JSTestObj::toWrapped(state->argument(2));
    40414046    if (UNLIKELY(!objArg))
    4042         return throwArgumentTypeError(*state, 2, "objArg", "TestObj", "octetMethodWithArgs", "TestObj");
     4047        return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "octetMethodWithArgs", "TestObj");
    40434048    JSValue result = jsNumber(impl.octetMethodWithArgs(WTFMove(octetArg), WTFMove(strArg), *objArg));
    40444049    return JSValue::encode(result);
     
    40504055    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    40514056    if (UNLIKELY(!castedThis))
    4052         return throwThisTypeError(*state, "TestObj", "longMethod");
     4057        return throwThisTypeError(*state, "TestObject", "longMethod");
    40534058    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    40544059    auto& impl = castedThis->wrapped();
     
    40624067    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    40634068    if (UNLIKELY(!castedThis))
    4064         return throwThisTypeError(*state, "TestObj", "longMethodWithArgs");
     4069        return throwThisTypeError(*state, "TestObject", "longMethodWithArgs");
    40654070    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    40664071    auto& impl = castedThis->wrapped();
     
    40754080    auto objArg = JSTestObj::toWrapped(state->argument(2));
    40764081    if (UNLIKELY(!objArg))
    4077         return throwArgumentTypeError(*state, 2, "objArg", "TestObj", "longMethodWithArgs", "TestObj");
     4082        return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "longMethodWithArgs", "TestObj");
    40784083    JSValue result = jsNumber(impl.longMethodWithArgs(WTFMove(longArg), WTFMove(strArg), *objArg));
    40794084    return JSValue::encode(result);
     
    40854090    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    40864091    if (UNLIKELY(!castedThis))
    4087         return throwThisTypeError(*state, "TestObj", "objMethod");
     4092        return throwThisTypeError(*state, "TestObject", "objMethod");
    40884093    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    40894094    auto& impl = castedThis->wrapped();
     
    40974102    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    40984103    if (UNLIKELY(!castedThis))
    4099         return throwThisTypeError(*state, "TestObj", "objMethodWithArgs");
     4104        return throwThisTypeError(*state, "TestObject", "objMethodWithArgs");
    41004105    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    41014106    auto& impl = castedThis->wrapped();
     
    41104115    auto objArg = JSTestObj::toWrapped(state->argument(2));
    41114116    if (UNLIKELY(!objArg))
    4112         return throwArgumentTypeError(*state, 2, "objArg", "TestObj", "objMethodWithArgs", "TestObj");
     4117        return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "objMethodWithArgs", "TestObj");
    41134118    JSValue result = toJS(state, castedThis->globalObject(), impl.objMethodWithArgs(WTFMove(longArg), WTFMove(strArg), *objArg));
    41144119    return JSValue::encode(result);
     
    41204125    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    41214126    if (UNLIKELY(!castedThis))
    4122         return throwThisTypeError(*state, "TestObj", "unforgeableMethod");
     4127        return throwThisTypeError(*state, "TestObject", "unforgeableMethod");
    41234128    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    41244129    auto& impl = castedThis->wrapped();
     
    41324137    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    41334138    if (UNLIKELY(!castedThis))
    4134         return throwThisTypeError(*state, "TestObj", "methodWithArgTreatingNullAsEmptyString");
     4139        return throwThisTypeError(*state, "TestObject", "methodWithArgTreatingNullAsEmptyString");
    41354140    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    41364141    auto& impl = castedThis->wrapped();
     
    41494154    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    41504155    if (UNLIKELY(!castedThis))
    4151         return throwThisTypeError(*state, "TestObj", "methodWithXPathNSResolverParameter");
     4156        return throwThisTypeError(*state, "TestObject", "methodWithXPathNSResolverParameter");
    41524157    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    41534158    auto& impl = castedThis->wrapped();
     
    41584163        return JSValue::encode(jsUndefined());
    41594164    if (UNLIKELY(!resolver))
    4160         return throwArgumentTypeError(*state, 0, "resolver", "TestObj", "methodWithXPathNSResolverParameter", "XPathNSResolver");
     4165        return throwArgumentTypeError(*state, 0, "resolver", "TestObject", "methodWithXPathNSResolverParameter", "XPathNSResolver");
    41614166    impl.methodWithXPathNSResolverParameter(*resolver);
    41624167    return JSValue::encode(jsUndefined());
     
    41684173    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    41694174    if (UNLIKELY(!castedThis))
    4170         return throwThisTypeError(*state, "TestObj", "nullableStringMethod");
     4175        return throwThisTypeError(*state, "TestObject", "nullableStringMethod");
    41714176    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    41724177    auto& impl = castedThis->wrapped();
     
    41864191    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    41874192    if (UNLIKELY(!castedThis))
    4188         return throwThisTypeError(*state, "TestObj", "nullableStringSpecialMethod");
     4193        return throwThisTypeError(*state, "TestObject", "nullableStringSpecialMethod");
    41894194    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    41904195    auto& impl = castedThis->wrapped();
     
    42034208    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    42044209    if (UNLIKELY(!castedThis))
    4205         return throwThisTypeError(*state, "TestObj", "methodWithEnumArg");
     4210        return throwThisTypeError(*state, "TestObject", "methodWithEnumArg");
    42064211    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    42074212    auto& impl = castedThis->wrapped();
     
    42144219        return JSValue::encode(jsUndefined());
    42154220    if (UNLIKELY(!optionalValue))
    4216         return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObj", "methodWithEnumArg", expectedEnumerationValues<TestObj::EnumType>());
     4221        return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObject", "methodWithEnumArg", expectedEnumerationValues<TestObj::EnumType>());
    42174222    enumArg = optionalValue.value();
    42184223    impl.methodWithEnumArg(enumArg);
     
    42254230    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    42264231    if (UNLIKELY(!castedThis))
    4227         return throwThisTypeError(*state, "TestObj", "methodWithOptionalEnumArg");
     4232        return throwThisTypeError(*state, "TestObject", "methodWithOptionalEnumArg");
    42284233    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    42294234    auto& impl = castedThis->wrapped();
     
    42354240            return JSValue::encode(jsUndefined());
    42364241        if (UNLIKELY(!enumArg))
    4237             return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObj", "methodWithOptionalEnumArg", expectedEnumerationValues<TestObj::EnumType>());
     4242            return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObject", "methodWithOptionalEnumArg", expectedEnumerationValues<TestObj::EnumType>());
    42384243    }
    42394244    impl.methodWithOptionalEnumArg(enumArg);
     
    42464251    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    42474252    if (UNLIKELY(!castedThis))
    4248         return throwThisTypeError(*state, "TestObj", "methodWithOptionalEnumArgAndDefaultValue");
     4253        return throwThisTypeError(*state, "TestObject", "methodWithOptionalEnumArgAndDefaultValue");
    42494254    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    42504255    auto& impl = castedThis->wrapped();
     
    42584263            return JSValue::encode(jsUndefined());
    42594264        if (UNLIKELY(!optionalValue))
    4260             return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObj", "methodWithOptionalEnumArgAndDefaultValue", expectedEnumerationValues<TestObj::EnumType>());
     4265            return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObject", "methodWithOptionalEnumArgAndDefaultValue", expectedEnumerationValues<TestObj::EnumType>());
    42614266        enumArg = optionalValue.value();
    42624267    }
     
    42704275    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    42714276    if (UNLIKELY(!castedThis))
    4272         return throwThisTypeError(*state, "TestObj", "methodThatRequiresAllArgsAndThrows");
     4277        return throwThisTypeError(*state, "TestObject", "methodThatRequiresAllArgsAndThrows");
    42734278    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    42744279    auto& impl = castedThis->wrapped();
     
    42814286    auto objArg = JSTestObj::toWrapped(state->argument(1));
    42824287    if (UNLIKELY(!objArg))
    4283         return throwArgumentTypeError(*state, 1, "objArg", "TestObj", "methodThatRequiresAllArgsAndThrows", "TestObj");
     4288        return throwArgumentTypeError(*state, 1, "objArg", "TestObject", "methodThatRequiresAllArgsAndThrows", "TestObj");
    42844289    JSValue result = toJS(state, castedThis->globalObject(), impl.methodThatRequiresAllArgsAndThrows(WTFMove(strArg), *objArg, ec));
    42854290
     
    42934298    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    42944299    if (UNLIKELY(!castedThis))
    4295         return throwThisTypeError(*state, "TestObj", "serializedValue");
     4300        return throwThisTypeError(*state, "TestObject", "serializedValue");
    42964301    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    42974302    auto& impl = castedThis->wrapped();
     
    43104315    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    43114316    if (UNLIKELY(!castedThis))
    4312         return throwThisTypeError(*state, "TestObj", "optionsObject");
     4317        return throwThisTypeError(*state, "TestObject", "optionsObject");
    43134318    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    43144319    auto& impl = castedThis->wrapped();
     
    43264331    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    43274332    if (UNLIKELY(!castedThis))
    4328         return throwThisTypeError(*state, "TestObj", "methodWithException");
     4333        return throwThisTypeError(*state, "TestObject", "methodWithException");
    43294334    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    43304335    auto& impl = castedThis->wrapped();
     
    43404345    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    43414346    if (UNLIKELY(!castedThis))
    4342         return throwThisTypeError(*state, "TestObj", "methodWithExceptionWithMessage");
     4347        return throwThisTypeError(*state, "TestObject", "methodWithExceptionWithMessage");
    43434348    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    43444349    auto& impl = castedThis->wrapped();
     
    43544359    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    43554360    if (UNLIKELY(!castedThis))
    4356         return throwThisTypeError(*state, "TestObj", "customMethod");
     4361        return throwThisTypeError(*state, "TestObject", "customMethod");
    43574362    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    43584363    return JSValue::encode(castedThis->customMethod(*state));
     
    43644369    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    43654370    if (UNLIKELY(!castedThis))
    4366         return throwThisTypeError(*state, "TestObj", "customMethodWithArgs");
     4371        return throwThisTypeError(*state, "TestObject", "customMethodWithArgs");
    43674372    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    43684373    return JSValue::encode(castedThis->customMethodWithArgs(*state));
     
    43744379    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    43754380    if (UNLIKELY(!castedThis))
    4376         return throwThisTypeError(*state, "TestObj", "privateMethod");
     4381        return throwThisTypeError(*state, "TestObject", "privateMethod");
    43774382    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    43784383    auto& impl = castedThis->wrapped();
     
    43914396    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    43924397    if (UNLIKELY(!castedThis))
    4393         return throwThisTypeError(*state, "TestObj", "publicAndPrivateMethod");
     4398        return throwThisTypeError(*state, "TestObject", "publicAndPrivateMethod");
    43944399    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    43954400    auto& impl = castedThis->wrapped();
     
    44084413    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    44094414    if (UNLIKELY(!castedThis))
    4410         return throwThisTypeError(*state, "TestObj", "addEventListener");
     4415        return throwThisTypeError(*state, "TestObject", "addEventListener");
    44114416    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    44124417    auto& impl = castedThis->wrapped();
     
    44184423    auto listener = JSEventListener::create(state->argument(1), *castedThis, false, currentWorld(state));
    44194424    if (UNLIKELY(!listener))
    4420         return throwArgumentTypeError(*state, 1, "listener", "TestObj", "addEventListener", "EventListener");
     4425        return throwArgumentTypeError(*state, 1, "listener", "TestObject", "addEventListener", "EventListener");
    44214426    auto useCapture = state->argument(2).toBoolean(state);
    44224427    if (UNLIKELY(state->hadException()))
     
    44314436    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    44324437    if (UNLIKELY(!castedThis))
    4433         return throwThisTypeError(*state, "TestObj", "removeEventListener");
     4438        return throwThisTypeError(*state, "TestObject", "removeEventListener");
    44344439    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    44354440    auto& impl = castedThis->wrapped();
     
    44414446    auto listener = JSEventListener::create(state->argument(1), *castedThis, false, currentWorld(state));
    44424447    if (UNLIKELY(!listener))
    4443         return throwArgumentTypeError(*state, 1, "listener", "TestObj", "removeEventListener", "EventListener");
     4448        return throwArgumentTypeError(*state, 1, "listener", "TestObject", "removeEventListener", "EventListener");
    44444449    auto useCapture = state->argument(2).toBoolean(state);
    44454450    if (UNLIKELY(state->hadException()))
     
    44544459    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    44554460    if (UNLIKELY(!castedThis))
    4456         return throwThisTypeError(*state, "TestObj", "withScriptStateVoid");
     4461        return throwThisTypeError(*state, "TestObject", "withScriptStateVoid");
    44574462    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    44584463    auto& impl = castedThis->wrapped();
     
    44664471    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    44674472    if (UNLIKELY(!castedThis))
    4468         return throwThisTypeError(*state, "TestObj", "withScriptStateObj");
     4473        return throwThisTypeError(*state, "TestObject", "withScriptStateObj");
    44694474    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    44704475    auto& impl = castedThis->wrapped();
     
    44804485    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    44814486    if (UNLIKELY(!castedThis))
    4482         return throwThisTypeError(*state, "TestObj", "withScriptStateVoidException");
     4487        return throwThisTypeError(*state, "TestObject", "withScriptStateVoidException");
    44834488    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    44844489    auto& impl = castedThis->wrapped();
     
    44944499    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    44954500    if (UNLIKELY(!castedThis))
    4496         return throwThisTypeError(*state, "TestObj", "withScriptStateObjException");
     4501        return throwThisTypeError(*state, "TestObject", "withScriptStateObjException");
    44974502    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    44984503    auto& impl = castedThis->wrapped();
     
    45114516    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    45124517    if (UNLIKELY(!castedThis))
    4513         return throwThisTypeError(*state, "TestObj", "withScriptExecutionContext");
     4518        return throwThisTypeError(*state, "TestObject", "withScriptExecutionContext");
    45144519    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    45154520    auto& impl = castedThis->wrapped();
     
    45264531    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    45274532    if (UNLIKELY(!castedThis))
    4528         return throwThisTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptState");
     4533        return throwThisTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptState");
    45294534    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    45304535    auto& impl = castedThis->wrapped();
     
    45414546    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    45424547    if (UNLIKELY(!castedThis))
    4543         return throwThisTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateObjException");
     4548        return throwThisTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateObjException");
    45444549    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    45454550    auto& impl = castedThis->wrapped();
     
    45614566    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    45624567    if (UNLIKELY(!castedThis))
    4563         return throwThisTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpaces");
     4568        return throwThisTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpaces");
    45644569    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    45654570    auto& impl = castedThis->wrapped();
     
    45784583    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    45794584    if (UNLIKELY(!castedThis))
    4580         return throwThisTypeError(*state, "TestObj", "withScriptArgumentsAndCallStack");
     4585        return throwThisTypeError(*state, "TestObject", "withScriptArgumentsAndCallStack");
    45814586    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    45824587    auto& impl = castedThis->wrapped();
     
    45914596    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    45924597    if (UNLIKELY(!castedThis))
    4593         return throwThisTypeError(*state, "TestObj", "withDocumentArgument");
     4598        return throwThisTypeError(*state, "TestObject", "withDocumentArgument");
    45944599    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    45954600    auto& impl = castedThis->wrapped();
     
    46084613    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    46094614    if (UNLIKELY(!castedThis))
    4610         return throwThisTypeError(*state, "TestObj", "withCallerDocumentArgument");
     4615        return throwThisTypeError(*state, "TestObject", "withCallerDocumentArgument");
    46114616    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    46124617    auto& impl = castedThis->wrapped();
     
    46234628    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    46244629    if (UNLIKELY(!castedThis))
    4625         return throwThisTypeError(*state, "TestObj", "withCallerWindowArgument");
     4630        return throwThisTypeError(*state, "TestObject", "withCallerWindowArgument");
    46264631    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    46274632    auto& impl = castedThis->wrapped();
     
    46354640    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    46364641    if (UNLIKELY(!castedThis))
    4637         return throwThisTypeError(*state, "TestObj", "methodWithOptionalArg");
     4642        return throwThisTypeError(*state, "TestObject", "methodWithOptionalArg");
    46384643    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    46394644    auto& impl = castedThis->wrapped();
     
    46504655    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    46514656    if (UNLIKELY(!castedThis))
    4652         return throwThisTypeError(*state, "TestObj", "methodWithOptionalArgAndDefaultValue");
     4657        return throwThisTypeError(*state, "TestObject", "methodWithOptionalArgAndDefaultValue");
    46534658    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    46544659    auto& impl = castedThis->wrapped();
     
    46654670    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    46664671    if (UNLIKELY(!castedThis))
    4667         return throwThisTypeError(*state, "TestObj", "methodWithNonOptionalArgAndOptionalArg");
     4672        return throwThisTypeError(*state, "TestObject", "methodWithNonOptionalArgAndOptionalArg");
    46684673    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    46694674    auto& impl = castedThis->wrapped();
     
    46854690    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    46864691    if (UNLIKELY(!castedThis))
    4687         return throwThisTypeError(*state, "TestObj", "methodWithNonOptionalArgAndTwoOptionalArgs");
     4692        return throwThisTypeError(*state, "TestObject", "methodWithNonOptionalArgAndTwoOptionalArgs");
    46884693    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    46894694    auto& impl = castedThis->wrapped();
     
    47084713    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    47094714    if (UNLIKELY(!castedThis))
    4710         return throwThisTypeError(*state, "TestObj", "methodWithOptionalString");
     4715        return throwThisTypeError(*state, "TestObject", "methodWithOptionalString");
    47114716    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    47124717    auto& impl = castedThis->wrapped();
     
    47234728    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    47244729    if (UNLIKELY(!castedThis))
    4725         return throwThisTypeError(*state, "TestObj", "methodWithOptionalAtomicString");
     4730        return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicString");
    47264731    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    47274732    auto& impl = castedThis->wrapped();
     
    47384743    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    47394744    if (UNLIKELY(!castedThis))
    4740         return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringAndDefaultValue");
     4745        return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringAndDefaultValue");
    47414746    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    47424747    auto& impl = castedThis->wrapped();
     
    47534758    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    47544759    if (UNLIKELY(!castedThis))
    4755         return throwThisTypeError(*state, "TestObj", "methodWithOptionalAtomicStringAndDefaultValue");
     4760        return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicStringAndDefaultValue");
    47564761    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    47574762    auto& impl = castedThis->wrapped();
     
    47684773    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    47694774    if (UNLIKELY(!castedThis))
    4770         return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringIsNull");
     4775        return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringIsNull");
    47714776    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    47724777    auto& impl = castedThis->wrapped();
     
    47834788    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    47844789    if (UNLIKELY(!castedThis))
    4785         return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringIsUndefined");
     4790        return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringIsUndefined");
    47864791    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    47874792    auto& impl = castedThis->wrapped();
     
    47984803    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    47994804    if (UNLIKELY(!castedThis))
    4800         return throwThisTypeError(*state, "TestObj", "methodWithOptionalAtomicStringIsNull");
     4805        return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicStringIsNull");
    48014806    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    48024807    auto& impl = castedThis->wrapped();
     
    48134818    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    48144819    if (UNLIKELY(!castedThis))
    4815         return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringIsEmptyString");
     4820        return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringIsEmptyString");
    48164821    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    48174822    auto& impl = castedThis->wrapped();
     
    48284833    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    48294834    if (UNLIKELY(!castedThis))
    4830         return throwThisTypeError(*state, "TestObj", "methodWithOptionalAtomicStringIsEmptyString");
     4835        return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicStringIsEmptyString");
    48314836    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    48324837    auto& impl = castedThis->wrapped();
     
    48434848    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    48444849    if (UNLIKELY(!castedThis))
    4845         return throwThisTypeError(*state, "TestObj", "methodWithOptionalDoubleIsNaN");
     4850        return throwThisTypeError(*state, "TestObject", "methodWithOptionalDoubleIsNaN");
    48464851    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    48474852    auto& impl = castedThis->wrapped();
     
    48584863    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    48594864    if (UNLIKELY(!castedThis))
    4860         return throwThisTypeError(*state, "TestObj", "methodWithOptionalFloatIsNaN");
     4865        return throwThisTypeError(*state, "TestObject", "methodWithOptionalFloatIsNaN");
    48614866    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    48624867    auto& impl = castedThis->wrapped();
     
    48734878    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    48744879    if (UNLIKELY(!castedThis))
    4875         return throwThisTypeError(*state, "TestObj", "methodWithOptionalSequence");
     4880        return throwThisTypeError(*state, "TestObject", "methodWithOptionalSequence");
    48764881    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    48774882    auto& impl = castedThis->wrapped();
     
    48884893    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    48894894    if (UNLIKELY(!castedThis))
    4890         return throwThisTypeError(*state, "TestObj", "methodWithOptionalLongLong");
     4895        return throwThisTypeError(*state, "TestObject", "methodWithOptionalLongLong");
    48914896    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    48924897    auto& impl = castedThis->wrapped();
     
    49034908    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    49044909    if (UNLIKELY(!castedThis))
    4905         return throwThisTypeError(*state, "TestObj", "methodWithOptionalLongLongIsZero");
     4910        return throwThisTypeError(*state, "TestObject", "methodWithOptionalLongLongIsZero");
    49064911    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    49074912    auto& impl = castedThis->wrapped();
     
    49184923    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    49194924    if (UNLIKELY(!castedThis))
    4920         return throwThisTypeError(*state, "TestObj", "methodWithOptionalUnsignedLongLong");
     4925        return throwThisTypeError(*state, "TestObject", "methodWithOptionalUnsignedLongLong");
    49214926    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    49224927    auto& impl = castedThis->wrapped();
     
    49334938    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    49344939    if (UNLIKELY(!castedThis))
    4935         return throwThisTypeError(*state, "TestObj", "methodWithOptionalUnsignedLongLongIsZero");
     4940        return throwThisTypeError(*state, "TestObject", "methodWithOptionalUnsignedLongLongIsZero");
    49364941    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    49374942    auto& impl = castedThis->wrapped();
     
    49484953    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    49494954    if (UNLIKELY(!castedThis))
    4950         return throwThisTypeError(*state, "TestObj", "methodWithOptionalArray");
     4955        return throwThisTypeError(*state, "TestObject", "methodWithOptionalArray");
    49514956    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    49524957    auto& impl = castedThis->wrapped();
     
    49634968    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    49644969    if (UNLIKELY(!castedThis))
    4965         return throwThisTypeError(*state, "TestObj", "methodWithOptionalArrayIsEmpty");
     4970        return throwThisTypeError(*state, "TestObject", "methodWithOptionalArrayIsEmpty");
    49664971    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    49674972    auto& impl = castedThis->wrapped();
     
    49784983    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    49794984    if (UNLIKELY(!castedThis))
    4980         return throwThisTypeError(*state, "TestObj", "methodWithOptionalBoolean");
     4985        return throwThisTypeError(*state, "TestObject", "methodWithOptionalBoolean");
    49814986    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    49824987    auto& impl = castedThis->wrapped();
     
    49934998    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    49944999    if (UNLIKELY(!castedThis))
    4995         return throwThisTypeError(*state, "TestObj", "methodWithOptionalBooleanIsFalse");
     5000        return throwThisTypeError(*state, "TestObject", "methodWithOptionalBooleanIsFalse");
    49965001    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    49975002    auto& impl = castedThis->wrapped();
     
    50085013    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    50095014    if (UNLIKELY(!castedThis))
    5010         return throwThisTypeError(*state, "TestObj", "methodWithOptionalAny");
     5015        return throwThisTypeError(*state, "TestObject", "methodWithOptionalAny");
    50115016    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    50125017    auto& impl = castedThis->wrapped();
     
    50215026    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    50225027    if (UNLIKELY(!castedThis))
    5023         return throwThisTypeError(*state, "TestObj", "methodWithOptionalNullableWrapper");
     5028        return throwThisTypeError(*state, "TestObject", "methodWithOptionalNullableWrapper");
    50245029    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    50255030    auto& impl = castedThis->wrapped();
     
    50345039    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    50355040    if (UNLIKELY(!castedThis))
    5036         return throwThisTypeError(*state, "TestObj", "methodWithOptionalNullableWrapperIsNull");
     5041        return throwThisTypeError(*state, "TestObject", "methodWithOptionalNullableWrapperIsNull");
    50375042    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    50385043    auto& impl = castedThis->wrapped();
     
    50475052    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    50485053    if (UNLIKELY(!castedThis))
    5049         return throwThisTypeError(*state, "TestObj", "methodWithOptionalXPathNSResolver");
     5054        return throwThisTypeError(*state, "TestObject", "methodWithOptionalXPathNSResolver");
    50505055    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    50515056    auto& impl = castedThis->wrapped();
     
    50625067    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    50635068    if (UNLIKELY(!castedThis))
    5064         return throwThisTypeError(*state, "TestObj", "methodWithCallbackArg");
     5069        return throwThisTypeError(*state, "TestObject", "methodWithCallbackArg");
    50655070    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    50665071    auto& impl = castedThis->wrapped();
     
    50685073        return throwVMError(state, createNotEnoughArgumentsError(state));
    50695074    if (UNLIKELY(!state->argument(0).isObject()))
    5070         return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackArg");
     5075        return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackArg");
    50715076    auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
    50725077    impl.methodWithCallbackArg(WTFMove(callback));
     
    50795084    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    50805085    if (UNLIKELY(!castedThis))
    5081         return throwThisTypeError(*state, "TestObj", "methodWithNonCallbackArgAndCallbackArg");
     5086        return throwThisTypeError(*state, "TestObject", "methodWithNonCallbackArgAndCallbackArg");
    50825087    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    50835088    auto& impl = castedThis->wrapped();
     
    50885093        return JSValue::encode(jsUndefined());
    50895094    if (UNLIKELY(!state->argument(1).isObject()))
    5090         return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObj", "methodWithNonCallbackArgAndCallbackArg");
     5095        return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObject", "methodWithNonCallbackArgAndCallbackArg");
    50915096    auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
    50925097    impl.methodWithNonCallbackArgAndCallbackArg(WTFMove(nonCallback), WTFMove(callback));
     
    50995104    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    51005105    if (UNLIKELY(!castedThis))
    5101         return throwThisTypeError(*state, "TestObj", "methodWithCallbackAndOptionalArg");
     5106        return throwThisTypeError(*state, "TestObject", "methodWithCallbackAndOptionalArg");
    51025107    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    51035108    auto& impl = castedThis->wrapped();
     
    51055110    if (!state->argument(0).isUndefinedOrNull()) {
    51065111        if (!state->uncheckedArgument(0).isObject())
    5107             return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackAndOptionalArg");
     5112            return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackAndOptionalArg");
    51085113        callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
    51095114    }
     
    51175122    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    51185123    if (UNLIKELY(!castedThis))
    5119         return throwThisTypeError(*state, "TestObj", "methodWithCallbackFunctionArg");
     5124        return throwThisTypeError(*state, "TestObject", "methodWithCallbackFunctionArg");
    51205125    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    51215126    auto& impl = castedThis->wrapped();
     
    51235128        return throwVMError(state, createNotEnoughArgumentsError(state));
    51245129    if (UNLIKELY(!state->argument(0).isFunction()))
    5125         return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackFunctionArg");
     5130        return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackFunctionArg");
    51265131    auto callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
    51275132    impl.methodWithCallbackFunctionArg(WTFMove(callback));
     
    51345139    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    51355140    if (UNLIKELY(!castedThis))
    5136         return throwThisTypeError(*state, "TestObj", "methodWithNonCallbackArgAndCallbackFunctionArg");
     5141        return throwThisTypeError(*state, "TestObject", "methodWithNonCallbackArgAndCallbackFunctionArg");
    51375142    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    51385143    auto& impl = castedThis->wrapped();
     
    51435148        return JSValue::encode(jsUndefined());
    51445149    if (UNLIKELY(!state->argument(1).isFunction()))
    5145         return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObj", "methodWithNonCallbackArgAndCallbackFunctionArg");
     5150        return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObject", "methodWithNonCallbackArgAndCallbackFunctionArg");
    51465151    auto callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
    51475152    impl.methodWithNonCallbackArgAndCallbackFunctionArg(WTFMove(nonCallback), WTFMove(callback));
     
    51545159    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    51555160    if (UNLIKELY(!castedThis))
    5156         return throwThisTypeError(*state, "TestObj", "methodWithCallbackFunctionAndOptionalArg");
     5161        return throwThisTypeError(*state, "TestObject", "methodWithCallbackFunctionAndOptionalArg");
    51575162    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    51585163    auto& impl = castedThis->wrapped();
     
    51605165    if (!state->argument(0).isUndefinedOrNull()) {
    51615166        if (!state->uncheckedArgument(0).isFunction())
    5162             return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackFunctionAndOptionalArg");
     5167            return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackFunctionAndOptionalArg");
    51635168        callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
    51645169    }
     
    51725177    if (!state->argument(0).isUndefinedOrNull()) {
    51735178        if (!state->uncheckedArgument(0).isObject())
    5174             return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "staticMethodWithCallbackAndOptionalArg");
     5179            return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "staticMethodWithCallbackAndOptionalArg");
    51755180        callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0));
    51765181    }
     
    51845189        return throwVMError(state, createNotEnoughArgumentsError(state));
    51855190    if (UNLIKELY(!state->argument(0).isObject()))
    5186         return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "staticMethodWithCallbackArg");
     5191        return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "staticMethodWithCallbackArg");
    51875192    auto callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0));
    51885193    TestObj::staticMethodWithCallbackArg(WTFMove(callback));
     
    51965201    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    51975202    if (UNLIKELY(!castedThis))
    5198         return throwThisTypeError(*state, "TestObj", "conditionalMethod1");
     5203        return throwThisTypeError(*state, "TestObject", "conditionalMethod1");
    51995204    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    52005205    auto& impl = castedThis->wrapped();
     
    52115216    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    52125217    if (UNLIKELY(!castedThis))
    5213         return throwThisTypeError(*state, "TestObj", "conditionalMethod2");
     5218        return throwThisTypeError(*state, "TestObject", "conditionalMethod2");
    52145219    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    52155220    auto& impl = castedThis->wrapped();
     
    52265231    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    52275232    if (UNLIKELY(!castedThis))
    5228         return throwThisTypeError(*state, "TestObj", "conditionalMethod3");
     5233        return throwThisTypeError(*state, "TestObject", "conditionalMethod3");
    52295234    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    52305235    auto& impl = castedThis->wrapped();
     
    52405245    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    52415246    if (UNLIKELY(!castedThis))
    5242         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5247        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    52435248    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    52445249    auto& impl = castedThis->wrapped();
     
    52585263    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    52595264    if (UNLIKELY(!castedThis))
    5260         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5265        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    52615266    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    52625267    auto& impl = castedThis->wrapped();
     
    52765281    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    52775282    if (UNLIKELY(!castedThis))
    5278         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5283        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    52795284    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    52805285    auto& impl = castedThis->wrapped();
     
    52935298    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    52945299    if (UNLIKELY(!castedThis))
    5295         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5300        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    52965301    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    52975302    auto& impl = castedThis->wrapped();
     
    53105315    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    53115316    if (UNLIKELY(!castedThis))
    5312         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5317        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    53135318    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    53145319    auto& impl = castedThis->wrapped();
     
    53165321        return throwVMError(state, createNotEnoughArgumentsError(state));
    53175322    if (UNLIKELY(!state->argument(0).isObject()))
    5318         return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "overloadedMethod");
     5323        return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "overloadedMethod");
    53195324    auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
    53205325    impl.overloadedMethod(WTFMove(callback));
     
    53275332    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    53285333    if (UNLIKELY(!castedThis))
    5329         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5334        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    53305335    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    53315336    auto& impl = castedThis->wrapped();
     
    53445349    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    53455350    if (UNLIKELY(!castedThis))
    5346         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5351        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    53475352    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    53485353    auto& impl = castedThis->wrapped();
     
    53615366    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    53625367    if (UNLIKELY(!castedThis))
    5363         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5368        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    53645369    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    53655370    auto& impl = castedThis->wrapped();
     
    53685373    auto objArg = JSTestObj::toWrapped(state->argument(0));
    53695374    if (UNLIKELY(!objArg))
    5370         return throwArgumentTypeError(*state, 0, "objArg", "TestObj", "overloadedMethod", "TestObj");
     5375        return throwArgumentTypeError(*state, 0, "objArg", "TestObject", "overloadedMethod", "TestObj");
    53715376    impl.overloadedMethod(*objArg);
    53725377    return JSValue::encode(jsUndefined());
     
    53785383    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    53795384    if (UNLIKELY(!castedThis))
    5380         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5385        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    53815386    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    53825387    auto& impl = castedThis->wrapped();
     
    53955400    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    53965401    if (UNLIKELY(!castedThis))
    5397         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5402        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    53985403    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    53995404    auto& impl = castedThis->wrapped();
     
    54125417    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    54135418    if (UNLIKELY(!castedThis))
    5414         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5419        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    54155420    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    54165421    auto& impl = castedThis->wrapped();
     
    54295434    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    54305435    if (UNLIKELY(!castedThis))
    5431         return throwThisTypeError(*state, "TestObj", "overloadedMethod");
     5436        return throwThisTypeError(*state, "TestObject", "overloadedMethod");
    54325437    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    54335438    auto& impl = castedThis->wrapped();
     
    54385443        auto* item = JSBlob::toWrapped(state->uncheckedArgument(i));
    54395444        if (!item)
    5440             return throwArgumentTypeError(*state, i, "blobArgs", "TestObj", "overloadedMethod", "Blob");
     5445            return throwArgumentTypeError(*state, i, "blobArgs", "TestObject", "overloadedMethod", "Blob");
    54415446        blobArgs.uncheckedAppend(item);
    54425447    }
     
    54845489    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    54855490    if (UNLIKELY(!castedThis))
    5486         return throwThisTypeError(*state, "TestObj", "overloadedMethodWithOptionalParameter");
     5491        return throwThisTypeError(*state, "TestObject", "overloadedMethodWithOptionalParameter");
    54875492    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    54885493    auto& impl = castedThis->wrapped();
     
    55005505    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    55015506    if (UNLIKELY(!castedThis))
    5502         return throwThisTypeError(*state, "TestObj", "overloadedMethodWithOptionalParameter");
     5507        return throwThisTypeError(*state, "TestObject", "overloadedMethodWithOptionalParameter");
    55035508    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    55045509    auto& impl = castedThis->wrapped();
     
    56015606    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    56025607    if (UNLIKELY(!castedThis))
    5603         return throwThisTypeError(*state, "TestObj", "classMethodWithClamp");
     5608        return throwThisTypeError(*state, "TestObject", "classMethodWithClamp");
    56045609    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    56055610    auto& impl = castedThis->wrapped();
     
    56215626    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    56225627    if (UNLIKELY(!castedThis))
    5623         return throwThisTypeError(*state, "TestObj", "classMethodWithEnforceRange");
     5628        return throwThisTypeError(*state, "TestObject", "classMethodWithEnforceRange");
    56245629    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    56255630    auto& impl = castedThis->wrapped();
     
    56415646    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    56425647    if (UNLIKELY(!castedThis))
    5643         return throwThisTypeError(*state, "TestObj", "methodWithUnsignedLongSequence");
     5648        return throwThisTypeError(*state, "TestObject", "methodWithUnsignedLongSequence");
    56445649    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    56455650    auto& impl = castedThis->wrapped();
     
    56585663    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    56595664    if (UNLIKELY(!castedThis))
    5660         return throwThisTypeError(*state, "TestObj", "stringArrayFunction");
     5665        return throwThisTypeError(*state, "TestObject", "stringArrayFunction");
    56615666    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    56625667    auto& impl = castedThis->wrapped();
     
    56785683    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    56795684    if (UNLIKELY(!castedThis))
    5680         return throwThisTypeError(*state, "TestObj", "domStringListFunction");
     5685        return throwThisTypeError(*state, "TestObject", "domStringListFunction");
    56815686    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    56825687    auto& impl = castedThis->wrapped();
     
    56885693        return JSValue::encode(jsUndefined());
    56895694    if (UNLIKELY(!values))
    5690         return throwArgumentTypeError(*state, 0, "values", "TestObj", "domStringListFunction", "DOMStringList");
     5695        return throwArgumentTypeError(*state, 0, "values", "TestObject", "domStringListFunction", "DOMStringList");
    56915696    JSValue result = toJS(state, castedThis->globalObject(), impl.domStringListFunction(*values, ec));
    56925697
     
    57005705    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    57015706    if (UNLIKELY(!castedThis))
    5702         return throwThisTypeError(*state, "TestObj", "methodWithAndWithoutNullableSequence");
     5707        return throwThisTypeError(*state, "TestObject", "methodWithAndWithoutNullableSequence");
    57035708    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    57045709    auto& impl = castedThis->wrapped();
     
    57205725    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    57215726    if (UNLIKELY(!castedThis))
    5722         return throwThisTypeError(*state, "TestObj", "methodWithAndWithoutNullableSequence2");
     5727        return throwThisTypeError(*state, "TestObject", "methodWithAndWithoutNullableSequence2");
    57235728    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    57245729    auto& impl = castedThis->wrapped();
     
    57405745    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    57415746    if (UNLIKELY(!castedThis))
    5742         return throwThisTypeError(*state, "TestObj", "getElementById");
     5747        return throwThisTypeError(*state, "TestObject", "getElementById");
    57435748    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    57445749    auto& impl = castedThis->wrapped();
     
    57575762    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    57585763    if (UNLIKELY(!castedThis))
    5759         return throwThisTypeError(*state, "TestObj", "getSVGDocument");
     5764        return throwThisTypeError(*state, "TestObject", "getSVGDocument");
    57605765    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    57615766    auto& impl = castedThis->wrapped();
     
    57745779    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    57755780    if (UNLIKELY(!castedThis))
    5776         return throwThisTypeError(*state, "TestObj", "convert1");
     5781        return throwThisTypeError(*state, "TestObject", "convert1");
    57775782    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    57785783    auto& impl = castedThis->wrapped();
     
    57815786    auto value = JSTestNode::toWrapped(state->argument(0));
    57825787    if (UNLIKELY(!value))
    5783         return throwArgumentTypeError(*state, 0, "value", "TestObj", "convert1", "TestNode");
     5788        return throwArgumentTypeError(*state, 0, "value", "TestObject", "convert1", "TestNode");
    57845789    impl.convert1(*value);
    57855790    return JSValue::encode(jsUndefined());
     
    57915796    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    57925797    if (UNLIKELY(!castedThis))
    5793         return throwThisTypeError(*state, "TestObj", "convert2");
     5798        return throwThisTypeError(*state, "TestObject", "convert2");
    57945799    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    57955800    auto& impl = castedThis->wrapped();
     
    58065811    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    58075812    if (UNLIKELY(!castedThis))
    5808         return throwThisTypeError(*state, "TestObj", "convert3");
     5813        return throwThisTypeError(*state, "TestObject", "convert3");
    58095814    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    58105815    auto& impl = castedThis->wrapped();
     
    58235828    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    58245829    if (UNLIKELY(!castedThis))
    5825         return throwThisTypeError(*state, "TestObj", "convert4");
     5830        return throwThisTypeError(*state, "TestObject", "convert4");
    58265831    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    58275832    auto& impl = castedThis->wrapped();
     
    58405845    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    58415846    if (UNLIKELY(!castedThis))
    5842         return throwThisTypeError(*state, "TestObj", "mutablePointFunction");
     5847        return throwThisTypeError(*state, "TestObject", "mutablePointFunction");
    58435848    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    58445849    auto& impl = castedThis->wrapped();
     
    58525857    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    58535858    if (UNLIKELY(!castedThis))
    5854         return throwThisTypeError(*state, "TestObj", "immutablePointFunction");
     5859        return throwThisTypeError(*state, "TestObject", "immutablePointFunction");
    58555860    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    58565861    auto& impl = castedThis->wrapped();
     
    58645869    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    58655870    if (UNLIKELY(!castedThis))
    5866         return throwThisTypeError(*state, "TestObj", "orange");
     5871        return throwThisTypeError(*state, "TestObject", "orange");
    58675872    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    58685873    auto& impl = castedThis->wrapped();
     
    58765881    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    58775882    if (UNLIKELY(!castedThis))
    5878         return throwThisTypeError(*state, "TestObj", "strictFunction");
     5883        return throwThisTypeError(*state, "TestObject", "strictFunction");
    58795884    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    58805885    auto& impl = castedThis->wrapped();
     
    59025907    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    59035908    if (UNLIKELY(!castedThis))
    5904         return throwThisTypeError(*state, "TestObj", "strictFunctionWithSequence");
     5909        return throwThisTypeError(*state, "TestObject", "strictFunctionWithSequence");
    59055910    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    59065911    auto& impl = castedThis->wrapped();
     
    59125917        objArg = JSTestObj::toWrapped(state->uncheckedArgument(0));
    59135918        if (UNLIKELY(!objArg))
    5914             return throwArgumentTypeError(*state, 0, "objArg", "TestObj", "strictFunctionWithSequence", "TestObj");
     5919            return throwArgumentTypeError(*state, 0, "objArg", "TestObject", "strictFunctionWithSequence", "TestObj");
    59155920    }
    59165921    auto a = toNativeArray<uint32_t>(*state, state->argument(1));
     
    59285933    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    59295934    if (UNLIKELY(!castedThis))
    5930         return throwThisTypeError(*state, "TestObj", "strictFunctionWithArray");
     5935        return throwThisTypeError(*state, "TestObject", "strictFunctionWithArray");
    59315936    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    59325937    auto& impl = castedThis->wrapped();
     
    59365941    auto objArg = JSTestObj::toWrapped(state->argument(0));
    59375942    if (UNLIKELY(!objArg))
    5938         return throwArgumentTypeError(*state, 0, "objArg", "TestObj", "strictFunctionWithArray", "TestObj");
     5943        return throwArgumentTypeError(*state, 0, "objArg", "TestObject", "strictFunctionWithArray", "TestObj");
    59395944    auto array = toNativeArray<int32_t>(*state, state->argument(1));
    59405945    if (UNLIKELY(state->hadException()))
     
    59515956    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    59525957    if (UNLIKELY(!castedThis))
    5953         return throwThisTypeError(*state, "TestObj", "variadicStringMethod");
     5958        return throwThisTypeError(*state, "TestObject", "variadicStringMethod");
    59545959    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    59555960    auto& impl = castedThis->wrapped();
     
    59715976    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    59725977    if (UNLIKELY(!castedThis))
    5973         return throwThisTypeError(*state, "TestObj", "variadicDoubleMethod");
     5978        return throwThisTypeError(*state, "TestObject", "variadicDoubleMethod");
    59745979    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    59755980    auto& impl = castedThis->wrapped();
     
    59915996    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    59925997    if (UNLIKELY(!castedThis))
    5993         return throwThisTypeError(*state, "TestObj", "variadicNodeMethod");
     5998        return throwThisTypeError(*state, "TestObject", "variadicNodeMethod");
    59945999    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    59956000    auto& impl = castedThis->wrapped();
     
    59986003    auto head = JSNode::toWrapped(state->argument(0));
    59996004    if (UNLIKELY(!head))
    6000         return throwArgumentTypeError(*state, 0, "head", "TestObj", "variadicNodeMethod", "Node");
     6005        return throwArgumentTypeError(*state, 0, "head", "TestObject", "variadicNodeMethod", "Node");
    60016006    Vector<Node*> tail;
    60026007    ASSERT(1 <= state->argumentCount());
     
    60056010        auto* item = JSNode::toWrapped(state->uncheckedArgument(i));
    60066011        if (!item)
    6007             return throwArgumentTypeError(*state, i, "tail", "TestObj", "variadicNodeMethod", "Node");
     6012            return throwArgumentTypeError(*state, i, "tail", "TestObject", "variadicNodeMethod", "Node");
    60086013        tail.uncheckedAppend(item);
    60096014    }
     
    60176022    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    60186023    if (UNLIKELY(!castedThis))
    6019         return throwThisTypeError(*state, "TestObj", "any");
     6024        return throwThisTypeError(*state, "TestObject", "any");
    60206025    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    60216026    auto& impl = castedThis->wrapped();
     
    60436048    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    60446049    if (UNLIKELY(!castedThis))
    6045         return throwThisTypeError(*state, "TestObj", "testPromiseFunction");
     6050        return throwThisTypeError(*state, "TestObject", "testPromiseFunction");
    60466051    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    60476052    auto& impl = castedThis->wrapped();
     
    60616066    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    60626067    if (UNLIKELY(!castedThis))
    6063         return throwThisTypeError(*state, "TestObj", "testPromiseFunctionWithFloatArgument");
     6068        return throwThisTypeError(*state, "TestObject", "testPromiseFunctionWithFloatArgument");
    60646069    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    60656070    auto& impl = castedThis->wrapped();
     
    60846089    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    60856090    if (UNLIKELY(!castedThis))
    6086         return throwThisTypeError(*state, "TestObj", "testPromiseFunctionWithException");
     6091        return throwThisTypeError(*state, "TestObject", "testPromiseFunctionWithException");
    60876092    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    60886093    auto& impl = castedThis->wrapped();
     
    61046109    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    61056110    if (UNLIKELY(!castedThis))
    6106         return throwThisTypeError(*state, "TestObj", "testPromiseFunctionWithOptionalIntArgument");
     6111        return throwThisTypeError(*state, "TestObject", "testPromiseFunctionWithOptionalIntArgument");
    61076112    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    61086113    auto& impl = castedThis->wrapped();
     
    61256130    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    61266131    if (UNLIKELY(!castedThis))
    6127         return throwThisTypeError(*state, "TestObj", "testPromiseOverloadedFunction");
     6132        return throwThisTypeError(*state, "TestObject", "testPromiseOverloadedFunction");
    61286133    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    61296134    auto& impl = castedThis->wrapped();
     
    61486153    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    61496154    if (UNLIKELY(!castedThis))
    6150         return throwThisTypeError(*state, "TestObj", "testPromiseOverloadedFunction");
     6155        return throwThisTypeError(*state, "TestObject", "testPromiseOverloadedFunction");
    61516156    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    61526157    auto& impl = castedThis->wrapped();
     
    61556160    auto request = JSFetchRequest::toWrapped(state->argument(0));
    61566161    if (UNLIKELY(!request))
    6157         return throwArgumentTypeError(*state, 0, "request", "TestObj", "testPromiseOverloadedFunction", "FetchRequest");
     6162        return throwArgumentTypeError(*state, 0, "request", "TestObject", "testPromiseOverloadedFunction", "FetchRequest");
    61586163    impl.testPromiseOverloadedFunction(*request, DeferredWrapper(state, castedThis->globalObject(), promiseDeferred));
    61596164    return JSValue::encode(jsUndefined());
     
    62076212    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    62086213    if (UNLIKELY(!castedThis))
    6209         return throwThisTypeError(*state, "TestObj", "methodWithNeedsLifecycleProcessingStack");
     6214        return throwThisTypeError(*state, "TestObject", "methodWithNeedsLifecycleProcessingStack");
    62106215    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    62116216    auto& impl = castedThis->wrapped();
     
    62196224    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
    62206225    if (UNLIKELY(!castedThis))
    6221         return throwThisTypeError(*state, "TestObj", "attachShadowRoot");
     6226        return throwThisTypeError(*state, "TestObject", "attachShadowRoot");
    62226227    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
    62236228    auto& impl = castedThis->wrapped();
  • trunk/Source/WebCore/bindings/scripts/test/TestObj.idl

    r203222 r203858  
    4545
    4646[
     47    ConstructorCallWith=Document,
    4748    Constructor(TestCallback testCallback, TestCallbackFunction testCallbackFunction),
    4849    InterfaceName=TestObject
Note: See TracChangeset for help on using the changeset viewer.