Changeset 203858 in webkit
- Timestamp:
- Jul 28, 2016 11:45:21 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r203852 r203858 1 2016-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 1 25 2016-07-28 Chris Dumez <cdumez@apple.com> 2 26 -
trunk/LayoutTests/editing/selection/extend-expected.txt
r203333 r203858 6 6 Success: window.getSelection() is arbaz. 7 7 Success: 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.8 Success: 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 5 5 6 6 PASS 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.7 PASS window.getComputedStyle(null) threw exception TypeError: Argument 1 ('element') to Window.getComputedStyle must be an instance of Element. 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter.html
r203623 r203858 7 7 8 8 shouldThrow("window.getComputedStyle()", "'TypeError: Not enough arguments'"); 9 shouldThrow("window.getComputedStyle(null)", "'TypeError: Argument 1 (\\'element\\') to DOMWindow.getComputedStyle must be an instance of Element'");9 shouldThrow("window.getComputedStyle(null)", "'TypeError: Argument 1 (\\'element\\') to Window.getComputedStyle must be an instance of Element'"); 10 10 </script> 11 11 <script src="../../../resources/js-test-post.js"></script> -
trunk/LayoutTests/fetch/fetch-error-messages-expected.txt
r203766 r203858 1 1 CONSOLE MESSAGE: line 11: TypeError: The Response.body getter can only be used on instances of Response 2 CONSOLE MESSAGE: line 11: TypeError: The Request.method getter can only be used on instances of Request 3 CONSOLE MESSAGE: line 11: TypeError: Can only call Request.clone on instances of Request 2 4 3 5 PASS Exercising TypeError messages in Fetch Response -
trunk/LayoutTests/fetch/fetch-error-messages.html
r203766 r203858 26 26 27 27 printGetterError(response, "body", request); 28 printGetterError(request, "method", response); 29 printMethodError(request.clone, response); 28 30 29 31 }, "Exercising TypeError messages in Fetch Response"); -
trunk/LayoutTests/js/dom/toString-and-valueOf-override-expected.txt
r181901 r203858 393 393 String([Selection]) : 394 394 Selection.toString : function toString() { [native code] } 395 TypeError: Can only call DOMSelection.toString on instances of DOMSelection395 TypeError: Can only call Selection.toString on instances of Selection 396 396 Selection.toString() : 397 397 [Selection].toString() : -
trunk/LayoutTests/js/getOwnPropertyDescriptor-unforgeable-attributes-expected.txt
r196374 r203858 96 96 PASS descriptor.enumerable is true 97 97 PASS 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.98 PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.location getter can only be used on instances of Window. 99 99 PASS descriptor.get.call(window) === window.location is true 100 100 … … 104 104 PASS descriptor.enumerable is true 105 105 PASS 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.106 PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.window getter can only be used on instances of Window. 107 107 PASS descriptor.get.call(window) === window.window is true 108 108 … … 112 112 PASS descriptor.enumerable is true 113 113 PASS 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.114 PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.top getter can only be used on instances of Window. 115 115 PASS descriptor.get.call(window) === window.top is true 116 116 … … 120 120 PASS descriptor.enumerable is true 121 121 PASS 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.122 PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.document getter can only be used on instances of Window. 123 123 PASS successfullyParsed is true 124 124 -
trunk/LayoutTests/js/getOwnPropertyDescriptor-window-attributes-expected.txt
r196797 r203858 9 9 PASS descriptor.enumerable is true 10 10 PASS 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.11 PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.screen getter can only be used on instances of Window. 12 12 PASS descriptor.get.call(window) === window.screen is true 13 13 PASS descriptor.get.call() === window.screen is true … … 18 18 PASS descriptor.enumerable is true 19 19 PASS 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.20 PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.navigator getter can only be used on instances of Window. 21 21 PASS descriptor.get.call(window) === window.navigator is true 22 22 PASS descriptor.get.call() === window.navigator is true … … 27 27 PASS descriptor.enumerable is true 28 28 PASS 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.29 PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.self getter can only be used on instances of Window. 30 30 PASS descriptor.get.call(window) === window.self is true 31 31 PASS descriptor.get.call() === window.self is true … … 36 36 PASS descriptor.enumerable is true 37 37 PASS 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.38 PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.frameElement getter can only be used on instances of Window. 39 39 PASS descriptor.get.call(window) === window.frameElement is true 40 40 PASS descriptor.get.call() === window.frameElement is true … … 45 45 PASS descriptor.enumerable is true 46 46 PASS 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.47 PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.name getter can only be used on instances of Window. 48 48 PASS descriptor.get.call(window) === window.name is true 49 49 PASS descriptor.get.call() === window.name is true -
trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt
r200583 r203858 23 23 EXPECTED (mediaKeySession.onwebkitkeyerror == 'null') OK 24 24 EXPECTED (mediaKeySession.onwebkitkeymessage == 'null') OK 25 TEST(mediaKeySession.update(null)) THROWS('TypeError: Argument 1 (\'key\') to MediaKeySession.update must be an instance of Uint8Array') OK25 TEST(mediaKeySession.update(null)) THROWS('TypeError: Argument 1 (\'key\') to WebKitMediaKeySession.update must be an instance of Uint8Array') OK 26 26 END OF TEST 27 27 -
trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html
r200583 r203858 48 48 testExpected('mediaKeySession.onwebkitkeyerror', null); 49 49 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'"); 51 51 endTest(); 52 52 } -
trunk/LayoutTests/webaudio/createMediaStreamSource-null-expected.txt
r200583 r203858 4 4 5 5 6 PASS context.createMediaStreamSource(null) threw exception TypeError: Argument 1 ('mediaStream') to AudioContext.createMediaStreamSource must be an instance of MediaStream.6 PASS context.createMediaStreamSource(null) threw exception TypeError: Argument 1 ('mediaStream') to webkitAudioContext.createMediaStreamSource must be an instance of MediaStream. 7 7 PASS successfullyParsed is true 8 8 -
trunk/LayoutTests/webaudio/createMediaStreamSource-null.html
r200583 r203858 10 10 11 11 var context = new webkitAudioContext(); 12 shouldThrow("context.createMediaStreamSource(null)", "'TypeError: Argument 1 (\\'mediaStream\\') to AudioContext.createMediaStreamSource must be an instance of MediaStream'");12 shouldThrow("context.createMediaStreamSource(null)", "'TypeError: Argument 1 (\\'mediaStream\\') to webkitAudioContext.createMediaStreamSource must be an instance of MediaStream'"); 13 13 14 14 </script> -
trunk/LayoutTests/webaudio/decode-audio-data-basic-expected.txt
r200583 r203858 4 4 5 5 6 PASS context.decodeAudioData(null, function(){}, function(){}); threw exception TypeError: Argument 1 ('audioData') to AudioContext.decodeAudioData must be an instance of ArrayBuffer.6 PASS context.decodeAudioData(null, function(){}, function(){}); threw exception TypeError: Argument 1 ('audioData') to webkitAudioContext.decodeAudioData must be an instance of ArrayBuffer. 7 7 PASS The resources/media/24bit-44khz.wav test: successCallback has been called correctly. 8 8 PASS The resources/media/invalid-audio-file.txt test: errorCallback has been called correctly. -
trunk/LayoutTests/webaudio/decode-audio-data-basic.html
r200583 r203858 19 19 20 20 // 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'");21 shouldThrow("context.decodeAudioData(null, function(){}, function(){});", "'TypeError: Argument 1 (\\'audioData\\') to webkitAudioContext.decodeAudioData must be an instance of ArrayBuffer'"); 22 22 23 23 var decodeCaseArray = [{url: "resources/media/24bit-44khz.wav", result: true}, -
trunk/LayoutTests/webaudio/mediaelementaudiosourcenode-expected.txt
r200583 r203858 10 10 PASS audioNode.connect(context.destination) succeeded. 11 11 PASS 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.12 PASS context.createMediaElementSource(null) threw exception TypeError: Argument 1 ('mediaElement') to webkitAudioContext.createMediaElementSource must be an instance of HTMLMediaElement. 13 13 PASS successfullyParsed is true 14 14 -
trunk/LayoutTests/webaudio/mediaelementaudiosourcenode.html
r200583 r203858 80 80 } 81 81 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'"); 83 83 84 84 finishJSTest(); -
trunk/Source/WebCore/ChangeLog
r203857 r203858 1 2016-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 1 18 2016-07-28 Carlos Garcia Campos <cgarcia@igalia.com> 2 19 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r203831 r203858 2570 2570 push(@implContent, " return JSValue::encode(jsUndefined());\n"); 2571 2571 } else { 2572 push(@implContent, " return throwGetterTypeError(*state, \"$ interfaceName\", \"$name\");\n");2572 push(@implContent, " return throwGetterTypeError(*state, \"$visibleInterfaceName\", \"$name\");\n"); 2573 2573 } 2574 2574 push(@implContent, " }\n"); … … 2861 2861 push(@implContent, " return false;\n"); 2862 2862 } else { 2863 push(@implContent, " return throwSetterTypeError(*state, \"$ interfaceName\", \"$name\");\n");2863 push(@implContent, " return throwSetterTypeError(*state, \"$visibleInterfaceName\", \"$name\");\n"); 2864 2864 } 2865 2865 push(@implContent, " }\n"); … … 2954 2954 } 2955 2955 push(@implContent, " if (UNLIKELY(!nativeValue)) {\n"); 2956 push(@implContent, " throwAttributeTypeError(*state, \"$ interfaceName\", \"$name\", \"$type\");\n");2956 push(@implContent, " throwAttributeTypeError(*state, \"$visibleInterfaceName\", \"$name\", \"$type\");\n"); 2957 2957 push(@implContent, " return false;\n"); 2958 2958 push(@implContent, " }\n"); … … 2973 2973 if ($shouldPassByReference) { 2974 2974 push(@implContent, " if (UNLIKELY(!nativeValue)) {\n"); 2975 push(@implContent, " throwAttributeTypeError(*state, \"$ interfaceName\", \"$name\", \"$type\");\n");2975 push(@implContent, " throwAttributeTypeError(*state, \"$visibleInterfaceName\", \"$name\", \"$type\");\n"); 2976 2976 push(@implContent, " return false;\n"); 2977 2977 push(@implContent, " }\n"); … … 3469 3469 push(@implContent, " auto castedThis = $castingHelper(thisValue);\n"); 3470 3470 } 3471 3472 my $visibleInterfaceName = $codeGenerator->GetVisibleInterfaceName($interface); 3471 3473 my $domFunctionName = $function->signature->name; 3472 3474 push(@implContent, " if (UNLIKELY(!castedThis))\n"); 3473 push(@implContent, " return throwThisTypeError(*state, \"$ interfaceName\", \"$domFunctionName\");\n");3475 push(@implContent, " return throwThisTypeError(*state, \"$visibleInterfaceName\", \"$domFunctionName\");\n"); 3474 3476 } 3475 3477 … … 3594 3596 3595 3597 my $interfaceName = $interface->name; 3598 my $visibleInterfaceName = $codeGenerator->GetVisibleInterfaceName($interface); 3596 3599 my @arguments; 3597 3600 my $functionName; … … 3662 3665 push(@$outputArray, " if (!state->uncheckedArgument($argumentIndex).isObject())\n"); 3663 3666 } 3664 push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$ interfaceName\", $quotedFunctionName);\n");3667 push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName);\n"); 3665 3668 if ($function->isStatic) { 3666 3669 AddToImplIncludes("CallbackFunction.h"); … … 3676 3679 push(@$outputArray, " if (UNLIKELY(!state->argument($argumentIndex).isObject()))\n"); 3677 3680 } 3678 push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$ interfaceName\", $quotedFunctionName);\n");3681 push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName);\n"); 3679 3682 if ($function->isStatic) { 3680 3683 AddToImplIncludes("CallbackFunction.h"); … … 3694 3697 push(@$outputArray, " auto* item = JS${type}::toWrapped(state->uncheckedArgument(i));\n"); 3695 3698 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"); 3697 3700 push(@$outputArray, " $name.uncheckedAppend(item);\n"); 3698 3701 push(@$outputArray, " }\n") … … 3737 3740 push(@$outputArray, "$indent return JSValue::encode(jsUndefined());\n"); 3738 3741 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"); 3740 3743 push(@$outputArray, "$indent $name = optionalValue.value();\n") if $optionalValue ne $name; 3741 3744 … … 3761 3764 } 3762 3765 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"); 3764 3767 push(@$outputArray, " }\n"); 3765 3768 } else { … … 3806 3809 if ($shouldPassByReference) { 3807 3810 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"); 3809 3812 $value = $isTearOff ? "$name->propertyReference()" : "*$name"; 3810 3813 } … … 5134 5137 push(@$outputArray, " ScriptExecutionContext* context = castedThis->scriptExecutionContext();\n"); 5135 5138 push(@$outputArray, " if (UNLIKELY(!context))\n"); 5136 push(@$outputArray, " return throwConstructorDocumentUnavailableError(*state, \"${ interfaceName}\");\n");5139 push(@$outputArray, " return throwConstructorDocumentUnavailableError(*state, \"${visibleInterfaceName}\");\n"); 5137 5140 } 5138 5141 if ($codeGenerator->ExtendedAttributeContains($interface->extendedAttributes->{"ConstructorCallWith"}, "Document")) { … … 5141 5144 push(@$outputArray, " ScriptExecutionContext* context = castedThis->scriptExecutionContext();\n"); 5142 5145 push(@$outputArray, " if (UNLIKELY(!context))\n"); 5143 push(@$outputArray, " return throwConstructorDocumentUnavailableError(*state, \"${ interfaceName}\");\n");5146 push(@$outputArray, " return throwConstructorDocumentUnavailableError(*state, \"${visibleInterfaceName}\");\n"); 5144 5147 push(@$outputArray, " ASSERT(context->isDocument());\n"); 5145 5148 push(@$outputArray, " auto& document = downcast<Document>(*context);\n"); -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
r203831 r203858 1014 1014 return throwVMError(state, createNotEnoughArgumentsError(state)); 1015 1015 if (UNLIKELY(!state->argument(0).isObject())) 1016 return throwArgumentMustBeFunctionError(*state, 0, "testCallback", "TestObj ", nullptr);1016 return throwArgumentMustBeFunctionError(*state, 0, "testCallback", "TestObject", nullptr); 1017 1017 auto testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject()); 1018 1018 if (UNLIKELY(!state->argument(1).isFunction())) 1019 return throwArgumentMustBeFunctionError(*state, 1, "testCallbackFunction", "TestObj ", nullptr);1019 return throwArgumentMustBeFunctionError(*state, 1, "testCallbackFunction", "TestObject", nullptr); 1020 1020 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); 1022 1027 return JSValue::encode(asObject(toJSNewlyCreated(state, castedThis->globalObject(), WTFMove(object)))); 1023 1028 } … … 1386 1391 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1387 1392 if (UNLIKELY(!castedThis)) { 1388 return throwGetterTypeError(*state, "TestObj ", "readOnlyLongAttr");1393 return throwGetterTypeError(*state, "TestObject", "readOnlyLongAttr"); 1389 1394 } 1390 1395 auto& impl = castedThis->wrapped(); … … 1401 1406 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1402 1407 if (UNLIKELY(!castedThis)) { 1403 return throwGetterTypeError(*state, "TestObj ", "readOnlyStringAttr");1408 return throwGetterTypeError(*state, "TestObject", "readOnlyStringAttr"); 1404 1409 } 1405 1410 auto& impl = castedThis->wrapped(); … … 1416 1421 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1417 1422 if (UNLIKELY(!castedThis)) { 1418 return throwGetterTypeError(*state, "TestObj ", "readOnlyTestObjAttr");1423 return throwGetterTypeError(*state, "TestObject", "readOnlyTestObjAttr"); 1419 1424 } 1420 1425 auto& impl = castedThis->wrapped(); … … 1449 1454 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1450 1455 if (UNLIKELY(!castedThis)) { 1451 return throwGetterTypeError(*state, "TestObj ", "TestSubObj");1456 return throwGetterTypeError(*state, "TestObject", "TestSubObj"); 1452 1457 } 1453 1458 return JSValue::encode(JSTestSubObj::getConstructor(state->vm(), castedThis->globalObject())); … … 1462 1467 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1463 1468 if (UNLIKELY(!castedThis)) { 1464 return throwGetterTypeError(*state, "TestObj ", "TestSubObjEnabledBySetting");1469 return throwGetterTypeError(*state, "TestObject", "TestSubObjEnabledBySetting"); 1465 1470 } 1466 1471 if (UNLIKELY(!castedThis->wrapped().frame())) … … 1480 1485 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1481 1486 if (UNLIKELY(!castedThis)) { 1482 return throwGetterTypeError(*state, "TestObj ", "enumAttr");1487 return throwGetterTypeError(*state, "TestObject", "enumAttr"); 1483 1488 } 1484 1489 auto& impl = castedThis->wrapped(); … … 1495 1500 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1496 1501 if (UNLIKELY(!castedThis)) { 1497 return throwGetterTypeError(*state, "TestObj ", "byteAttr");1502 return throwGetterTypeError(*state, "TestObject", "byteAttr"); 1498 1503 } 1499 1504 auto& impl = castedThis->wrapped(); … … 1510 1515 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1511 1516 if (UNLIKELY(!castedThis)) { 1512 return throwGetterTypeError(*state, "TestObj ", "octetAttr");1517 return throwGetterTypeError(*state, "TestObject", "octetAttr"); 1513 1518 } 1514 1519 auto& impl = castedThis->wrapped(); … … 1525 1530 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1526 1531 if (UNLIKELY(!castedThis)) { 1527 return throwGetterTypeError(*state, "TestObj ", "shortAttr");1532 return throwGetterTypeError(*state, "TestObject", "shortAttr"); 1528 1533 } 1529 1534 auto& impl = castedThis->wrapped(); … … 1540 1545 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1541 1546 if (UNLIKELY(!castedThis)) { 1542 return throwGetterTypeError(*state, "TestObj ", "clampedShortAttr");1547 return throwGetterTypeError(*state, "TestObject", "clampedShortAttr"); 1543 1548 } 1544 1549 auto& impl = castedThis->wrapped(); … … 1555 1560 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1556 1561 if (UNLIKELY(!castedThis)) { 1557 return throwGetterTypeError(*state, "TestObj ", "enforceRangeShortAttr");1562 return throwGetterTypeError(*state, "TestObject", "enforceRangeShortAttr"); 1558 1563 } 1559 1564 auto& impl = castedThis->wrapped(); … … 1570 1575 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1571 1576 if (UNLIKELY(!castedThis)) { 1572 return throwGetterTypeError(*state, "TestObj ", "unsignedShortAttr");1577 return throwGetterTypeError(*state, "TestObject", "unsignedShortAttr"); 1573 1578 } 1574 1579 auto& impl = castedThis->wrapped(); … … 1585 1590 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1586 1591 if (UNLIKELY(!castedThis)) { 1587 return throwGetterTypeError(*state, "TestObj ", "longAttr");1592 return throwGetterTypeError(*state, "TestObject", "longAttr"); 1588 1593 } 1589 1594 auto& impl = castedThis->wrapped(); … … 1600 1605 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1601 1606 if (UNLIKELY(!castedThis)) { 1602 return throwGetterTypeError(*state, "TestObj ", "longLongAttr");1607 return throwGetterTypeError(*state, "TestObject", "longLongAttr"); 1603 1608 } 1604 1609 auto& impl = castedThis->wrapped(); … … 1615 1620 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1616 1621 if (UNLIKELY(!castedThis)) { 1617 return throwGetterTypeError(*state, "TestObj ", "unsignedLongLongAttr");1622 return throwGetterTypeError(*state, "TestObject", "unsignedLongLongAttr"); 1618 1623 } 1619 1624 auto& impl = castedThis->wrapped(); … … 1630 1635 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1631 1636 if (UNLIKELY(!castedThis)) { 1632 return throwGetterTypeError(*state, "TestObj ", "stringAttr");1637 return throwGetterTypeError(*state, "TestObject", "stringAttr"); 1633 1638 } 1634 1639 auto& impl = castedThis->wrapped(); … … 1645 1650 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1646 1651 if (UNLIKELY(!castedThis)) { 1647 return throwGetterTypeError(*state, "TestObj ", "testObjAttr");1652 return throwGetterTypeError(*state, "TestObject", "testObjAttr"); 1648 1653 } 1649 1654 auto& impl = castedThis->wrapped(); … … 1660 1665 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1661 1666 if (UNLIKELY(!castedThis)) { 1662 return throwGetterTypeError(*state, "TestObj ", "testNullableObjAttr");1667 return throwGetterTypeError(*state, "TestObject", "testNullableObjAttr"); 1663 1668 } 1664 1669 auto& impl = castedThis->wrapped(); … … 1690 1695 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1691 1696 if (UNLIKELY(!castedThis)) { 1692 return throwGetterTypeError(*state, "TestObj ", "unforgeableAttr");1697 return throwGetterTypeError(*state, "TestObject", "unforgeableAttr"); 1693 1698 } 1694 1699 auto& impl = castedThis->wrapped(); … … 1705 1710 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1706 1711 if (UNLIKELY(!castedThis)) { 1707 return throwGetterTypeError(*state, "TestObj ", "stringAttrTreatingNullAsEmptyString");1712 return throwGetterTypeError(*state, "TestObject", "stringAttrTreatingNullAsEmptyString"); 1708 1713 } 1709 1714 auto& impl = castedThis->wrapped(); … … 1720 1725 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1721 1726 if (UNLIKELY(!castedThis)) { 1722 return throwGetterTypeError(*state, "TestObj ", "XMLObjAttr");1727 return throwGetterTypeError(*state, "TestObject", "XMLObjAttr"); 1723 1728 } 1724 1729 auto& impl = castedThis->wrapped(); … … 1735 1740 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1736 1741 if (UNLIKELY(!castedThis)) { 1737 return throwGetterTypeError(*state, "TestObj ", "create");1742 return throwGetterTypeError(*state, "TestObject", "create"); 1738 1743 } 1739 1744 auto& impl = castedThis->wrapped(); … … 1750 1755 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1751 1756 if (UNLIKELY(!castedThis)) { 1752 return throwGetterTypeError(*state, "TestObj ", "reflectedStringAttr");1757 return throwGetterTypeError(*state, "TestObject", "reflectedStringAttr"); 1753 1758 } 1754 1759 auto& impl = castedThis->wrapped(); … … 1765 1770 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1766 1771 if (UNLIKELY(!castedThis)) { 1767 return throwGetterTypeError(*state, "TestObj ", "reflectedIntegralAttr");1772 return throwGetterTypeError(*state, "TestObject", "reflectedIntegralAttr"); 1768 1773 } 1769 1774 auto& impl = castedThis->wrapped(); … … 1780 1785 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1781 1786 if (UNLIKELY(!castedThis)) { 1782 return throwGetterTypeError(*state, "TestObj ", "reflectedUnsignedIntegralAttr");1787 return throwGetterTypeError(*state, "TestObject", "reflectedUnsignedIntegralAttr"); 1783 1788 } 1784 1789 auto& impl = castedThis->wrapped(); … … 1795 1800 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1796 1801 if (UNLIKELY(!castedThis)) { 1797 return throwGetterTypeError(*state, "TestObj ", "reflectedBooleanAttr");1802 return throwGetterTypeError(*state, "TestObject", "reflectedBooleanAttr"); 1798 1803 } 1799 1804 auto& impl = castedThis->wrapped(); … … 1810 1815 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1811 1816 if (UNLIKELY(!castedThis)) { 1812 return throwGetterTypeError(*state, "TestObj ", "reflectedURLAttr");1817 return throwGetterTypeError(*state, "TestObject", "reflectedURLAttr"); 1813 1818 } 1814 1819 auto& impl = castedThis->wrapped(); … … 1825 1830 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1826 1831 if (UNLIKELY(!castedThis)) { 1827 return throwGetterTypeError(*state, "TestObj ", "reflectedStringAttr");1832 return throwGetterTypeError(*state, "TestObject", "reflectedStringAttr"); 1828 1833 } 1829 1834 auto& impl = castedThis->wrapped(); … … 1840 1845 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1841 1846 if (UNLIKELY(!castedThis)) { 1842 return throwGetterTypeError(*state, "TestObj ", "reflectedCustomIntegralAttr");1847 return throwGetterTypeError(*state, "TestObject", "reflectedCustomIntegralAttr"); 1843 1848 } 1844 1849 auto& impl = castedThis->wrapped(); … … 1855 1860 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1856 1861 if (UNLIKELY(!castedThis)) { 1857 return throwGetterTypeError(*state, "TestObj ", "reflectedCustomBooleanAttr");1862 return throwGetterTypeError(*state, "TestObject", "reflectedCustomBooleanAttr"); 1858 1863 } 1859 1864 auto& impl = castedThis->wrapped(); … … 1870 1875 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1871 1876 if (UNLIKELY(!castedThis)) { 1872 return throwGetterTypeError(*state, "TestObj ", "reflectedCustomURLAttr");1877 return throwGetterTypeError(*state, "TestObject", "reflectedCustomURLAttr"); 1873 1878 } 1874 1879 auto& impl = castedThis->wrapped(); … … 1886 1891 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1887 1892 if (UNLIKELY(!castedThis)) { 1888 return throwGetterTypeError(*state, "TestObj ", "enabledAtRuntimeAttribute");1893 return throwGetterTypeError(*state, "TestObject", "enabledAtRuntimeAttribute"); 1889 1894 } 1890 1895 auto& impl = castedThis->wrapped(); … … 1902 1907 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1903 1908 if (UNLIKELY(!castedThis)) { 1904 return throwGetterTypeError(*state, "TestObj ", "typedArrayAttr");1909 return throwGetterTypeError(*state, "TestObject", "typedArrayAttr"); 1905 1910 } 1906 1911 auto& impl = castedThis->wrapped(); … … 1917 1922 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1918 1923 if (UNLIKELY(!castedThis)) { 1919 return throwGetterTypeError(*state, "TestObj ", "attrWithGetterException");1924 return throwGetterTypeError(*state, "TestObject", "attrWithGetterException"); 1920 1925 } 1921 1926 ExceptionCode ec = 0; … … 1934 1939 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1935 1940 if (UNLIKELY(!castedThis)) { 1936 return throwGetterTypeError(*state, "TestObj ", "attrWithGetterExceptionWithMessage");1941 return throwGetterTypeError(*state, "TestObject", "attrWithGetterExceptionWithMessage"); 1937 1942 } 1938 1943 ExceptionCodeWithMessage ec; … … 1951 1956 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1952 1957 if (UNLIKELY(!castedThis)) { 1953 return throwGetterTypeError(*state, "TestObj ", "attrWithSetterException");1958 return throwGetterTypeError(*state, "TestObject", "attrWithSetterException"); 1954 1959 } 1955 1960 auto& impl = castedThis->wrapped(); … … 1966 1971 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1967 1972 if (UNLIKELY(!castedThis)) { 1968 return throwGetterTypeError(*state, "TestObj ", "attrWithSetterExceptionWithMessage");1973 return throwGetterTypeError(*state, "TestObject", "attrWithSetterExceptionWithMessage"); 1969 1974 } 1970 1975 auto& impl = castedThis->wrapped(); … … 1981 1986 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1982 1987 if (UNLIKELY(!castedThis)) { 1983 return throwGetterTypeError(*state, "TestObj ", "stringAttrWithGetterException");1988 return throwGetterTypeError(*state, "TestObject", "stringAttrWithGetterException"); 1984 1989 } 1985 1990 ExceptionCode ec = 0; … … 1998 2003 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 1999 2004 if (UNLIKELY(!castedThis)) { 2000 return throwGetterTypeError(*state, "TestObj ", "stringAttrWithSetterException");2005 return throwGetterTypeError(*state, "TestObject", "stringAttrWithSetterException"); 2001 2006 } 2002 2007 auto& impl = castedThis->wrapped(); … … 2013 2018 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2014 2019 if (UNLIKELY(!castedThis)) { 2015 return throwGetterTypeError(*state, "TestObj ", "strictTypeCheckingAttribute");2020 return throwGetterTypeError(*state, "TestObject", "strictTypeCheckingAttribute"); 2016 2021 } 2017 2022 auto& impl = castedThis->wrapped(); … … 2028 2033 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2029 2034 if (UNLIKELY(!castedThis)) { 2030 return throwGetterTypeError(*state, "TestObj ", "customAttr");2035 return throwGetterTypeError(*state, "TestObject", "customAttr"); 2031 2036 } 2032 2037 return JSValue::encode(castedThis->customAttr(*state)); … … 2041 2046 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2042 2047 if (UNLIKELY(!castedThis)) { 2043 return throwGetterTypeError(*state, "TestObj ", "onfoo");2048 return throwGetterTypeError(*state, "TestObject", "onfoo"); 2044 2049 } 2045 2050 UNUSED_PARAM(state); … … 2055 2060 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2056 2061 if (UNLIKELY(!castedThis)) { 2057 return throwGetterTypeError(*state, "TestObj ", "onwebkitfoo");2062 return throwGetterTypeError(*state, "TestObject", "onwebkitfoo"); 2058 2063 } 2059 2064 UNUSED_PARAM(state); … … 2069 2074 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2070 2075 if (UNLIKELY(!castedThis)) { 2071 return throwGetterTypeError(*state, "TestObj ", "withScriptStateAttribute");2076 return throwGetterTypeError(*state, "TestObject", "withScriptStateAttribute"); 2072 2077 } 2073 2078 auto& impl = castedThis->wrapped(); … … 2084 2089 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2085 2090 if (UNLIKELY(!castedThis)) { 2086 return throwGetterTypeError(*state, "TestObj ", "withCallWithAndSetterCallWithAttribute");2091 return throwGetterTypeError(*state, "TestObject", "withCallWithAndSetterCallWithAttribute"); 2087 2092 } 2088 2093 auto& impl = castedThis->wrapped(); … … 2099 2104 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2100 2105 if (UNLIKELY(!castedThis)) { 2101 return throwGetterTypeError(*state, "TestObj ", "withScriptExecutionContextAttribute");2106 return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAttribute"); 2102 2107 } 2103 2108 auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext(); … … 2117 2122 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2118 2123 if (UNLIKELY(!castedThis)) { 2119 return throwGetterTypeError(*state, "TestObj ", "withScriptStateAttributeRaises");2124 return throwGetterTypeError(*state, "TestObject", "withScriptStateAttributeRaises"); 2120 2125 } 2121 2126 ExceptionCode ec = 0; … … 2134 2139 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2135 2140 if (UNLIKELY(!castedThis)) { 2136 return throwGetterTypeError(*state, "TestObj ", "withScriptExecutionContextAttributeRaises");2141 return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAttributeRaises"); 2137 2142 } 2138 2143 ExceptionCode ec = 0; … … 2154 2159 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2155 2160 if (UNLIKELY(!castedThis)) { 2156 return throwGetterTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateAttribute");2161 return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttribute"); 2157 2162 } 2158 2163 auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext(); … … 2172 2177 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2173 2178 if (UNLIKELY(!castedThis)) { 2174 return throwGetterTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateAttributeRaises");2179 return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttributeRaises"); 2175 2180 } 2176 2181 ExceptionCode ec = 0; … … 2192 2197 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2193 2198 if (UNLIKELY(!castedThis)) { 2194 return throwGetterTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");2199 return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpacesAttribute"); 2195 2200 } 2196 2201 auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext(); … … 2210 2215 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2211 2216 if (UNLIKELY(!castedThis)) { 2212 return throwGetterTypeError(*state, "TestObj ", "withScriptArgumentsAndCallStackAttribute");2217 return throwGetterTypeError(*state, "TestObject", "withScriptArgumentsAndCallStackAttribute"); 2213 2218 } 2214 2219 auto& impl = castedThis->wrapped(); … … 2226 2231 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2227 2232 if (UNLIKELY(!castedThis)) { 2228 return throwGetterTypeError(*state, "TestObj ", "conditionalAttr1");2233 return throwGetterTypeError(*state, "TestObject", "conditionalAttr1"); 2229 2234 } 2230 2235 auto& impl = castedThis->wrapped(); … … 2243 2248 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2244 2249 if (UNLIKELY(!castedThis)) { 2245 return throwGetterTypeError(*state, "TestObj ", "conditionalAttr2");2250 return throwGetterTypeError(*state, "TestObject", "conditionalAttr2"); 2246 2251 } 2247 2252 auto& impl = castedThis->wrapped(); … … 2260 2265 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2261 2266 if (UNLIKELY(!castedThis)) { 2262 return throwGetterTypeError(*state, "TestObj ", "conditionalAttr3");2267 return throwGetterTypeError(*state, "TestObject", "conditionalAttr3"); 2263 2268 } 2264 2269 auto& impl = castedThis->wrapped(); … … 2277 2282 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2278 2283 if (UNLIKELY(!castedThis)) { 2279 return throwGetterTypeError(*state, "TestObj ", "conditionalAttr4");2284 return throwGetterTypeError(*state, "TestObject", "conditionalAttr4"); 2280 2285 } 2281 2286 return JSValue::encode(JSTestObjectA::getConstructor(state->vm(), castedThis->globalObject())); … … 2292 2297 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2293 2298 if (UNLIKELY(!castedThis)) { 2294 return throwGetterTypeError(*state, "TestObj ", "conditionalAttr5");2299 return throwGetterTypeError(*state, "TestObject", "conditionalAttr5"); 2295 2300 } 2296 2301 return JSValue::encode(JSTestObjectB::getConstructor(state->vm(), castedThis->globalObject())); … … 2307 2312 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2308 2313 if (UNLIKELY(!castedThis)) { 2309 return throwGetterTypeError(*state, "TestObj ", "conditionalAttr6");2314 return throwGetterTypeError(*state, "TestObject", "conditionalAttr6"); 2310 2315 } 2311 2316 return JSValue::encode(JSTestObjectC::getConstructor(state->vm(), castedThis->globalObject())); … … 2321 2326 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2322 2327 if (UNLIKELY(!castedThis)) { 2323 return throwGetterTypeError(*state, "TestObj ", "cachedAttribute1");2328 return throwGetterTypeError(*state, "TestObject", "cachedAttribute1"); 2324 2329 } 2325 2330 if (JSValue cachedValue = castedThis->m_cachedAttribute1.get()) … … 2339 2344 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2340 2345 if (UNLIKELY(!castedThis)) { 2341 return throwGetterTypeError(*state, "TestObj ", "cachedAttribute2");2346 return throwGetterTypeError(*state, "TestObject", "cachedAttribute2"); 2342 2347 } 2343 2348 if (JSValue cachedValue = castedThis->m_cachedAttribute2.get()) … … 2357 2362 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2358 2363 if (UNLIKELY(!castedThis)) { 2359 return throwGetterTypeError(*state, "TestObj ", "anyAttribute");2364 return throwGetterTypeError(*state, "TestObject", "anyAttribute"); 2360 2365 } 2361 2366 auto& impl = castedThis->wrapped(); … … 2372 2377 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2373 2378 if (UNLIKELY(!castedThis)) { 2374 return throwGetterTypeError(*state, "TestObj ", "contentDocument");2379 return throwGetterTypeError(*state, "TestObject", "contentDocument"); 2375 2380 } 2376 2381 auto& impl = castedThis->wrapped(); … … 2386 2391 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2387 2392 if (UNLIKELY(!castedThis)) { 2388 return throwGetterTypeError(*state, "TestObj ", "mutablePoint");2393 return throwGetterTypeError(*state, "TestObject", "mutablePoint"); 2389 2394 } 2390 2395 auto& impl = castedThis->wrapped(); … … 2401 2406 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2402 2407 if (UNLIKELY(!castedThis)) { 2403 return throwGetterTypeError(*state, "TestObj ", "immutablePoint");2408 return throwGetterTypeError(*state, "TestObject", "immutablePoint"); 2404 2409 } 2405 2410 auto& impl = castedThis->wrapped(); … … 2416 2421 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2417 2422 if (UNLIKELY(!castedThis)) { 2418 return throwGetterTypeError(*state, "TestObj ", "strawberry");2423 return throwGetterTypeError(*state, "TestObject", "strawberry"); 2419 2424 } 2420 2425 auto& impl = castedThis->wrapped(); … … 2431 2436 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2432 2437 if (UNLIKELY(!castedThis)) { 2433 return throwGetterTypeError(*state, "TestObj ", "strictFloat");2438 return throwGetterTypeError(*state, "TestObject", "strictFloat"); 2434 2439 } 2435 2440 auto& impl = castedThis->wrapped(); … … 2446 2451 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2447 2452 if (UNLIKELY(!castedThis)) { 2448 return throwGetterTypeError(*state, "TestObj ", "description");2453 return throwGetterTypeError(*state, "TestObject", "description"); 2449 2454 } 2450 2455 auto& impl = castedThis->wrapped(); … … 2461 2466 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2462 2467 if (UNLIKELY(!castedThis)) { 2463 return throwGetterTypeError(*state, "TestObj ", "id");2468 return throwGetterTypeError(*state, "TestObject", "id"); 2464 2469 } 2465 2470 auto& impl = castedThis->wrapped(); … … 2476 2481 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2477 2482 if (UNLIKELY(!castedThis)) { 2478 return throwGetterTypeError(*state, "TestObj ", "hash");2483 return throwGetterTypeError(*state, "TestObject", "hash"); 2479 2484 } 2480 2485 auto& impl = castedThis->wrapped(); … … 2491 2496 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2492 2497 if (UNLIKELY(!castedThis)) { 2493 return throwGetterTypeError(*state, "TestObj ", "replaceableAttribute");2498 return throwGetterTypeError(*state, "TestObject", "replaceableAttribute"); 2494 2499 } 2495 2500 auto& impl = castedThis->wrapped(); … … 2506 2511 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2507 2512 if (UNLIKELY(!castedThis)) { 2508 return throwGetterTypeError(*state, "TestObj ", "nullableDoubleAttribute");2513 return throwGetterTypeError(*state, "TestObject", "nullableDoubleAttribute"); 2509 2514 } 2510 2515 auto& impl = castedThis->wrapped(); … … 2521 2526 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2522 2527 if (UNLIKELY(!castedThis)) { 2523 return throwGetterTypeError(*state, "TestObj ", "nullableLongAttribute");2528 return throwGetterTypeError(*state, "TestObject", "nullableLongAttribute"); 2524 2529 } 2525 2530 auto& impl = castedThis->wrapped(); … … 2536 2541 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2537 2542 if (UNLIKELY(!castedThis)) { 2538 return throwGetterTypeError(*state, "TestObj ", "nullableBooleanAttribute");2543 return throwGetterTypeError(*state, "TestObject", "nullableBooleanAttribute"); 2539 2544 } 2540 2545 auto& impl = castedThis->wrapped(); … … 2551 2556 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2552 2557 if (UNLIKELY(!castedThis)) { 2553 return throwGetterTypeError(*state, "TestObj ", "nullableStringAttribute");2558 return throwGetterTypeError(*state, "TestObject", "nullableStringAttribute"); 2554 2559 } 2555 2560 auto& impl = castedThis->wrapped(); … … 2566 2571 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2567 2572 if (UNLIKELY(!castedThis)) { 2568 return throwGetterTypeError(*state, "TestObj ", "nullableLongSettableAttribute");2573 return throwGetterTypeError(*state, "TestObject", "nullableLongSettableAttribute"); 2569 2574 } 2570 2575 auto& impl = castedThis->wrapped(); … … 2581 2586 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2582 2587 if (UNLIKELY(!castedThis)) { 2583 return throwGetterTypeError(*state, "TestObj ", "nullableStringSettableAttribute");2588 return throwGetterTypeError(*state, "TestObject", "nullableStringSettableAttribute"); 2584 2589 } 2585 2590 auto& impl = castedThis->wrapped(); … … 2596 2601 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2597 2602 if (UNLIKELY(!castedThis)) { 2598 return throwGetterTypeError(*state, "TestObj ", "nullableStringValue");2603 return throwGetterTypeError(*state, "TestObject", "nullableStringValue"); 2599 2604 } 2600 2605 ExceptionCode ec = 0; … … 2613 2618 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2614 2619 if (UNLIKELY(!castedThis)) { 2615 return throwGetterTypeError(*state, "TestObj ", "attribute");2620 return throwGetterTypeError(*state, "TestObject", "attribute"); 2616 2621 } 2617 2622 auto& impl = castedThis->wrapped(); … … 2628 2633 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2629 2634 if (UNLIKELY(!castedThis)) { 2630 return throwGetterTypeError(*state, "TestObj ", "attributeWithReservedEnumType");2635 return throwGetterTypeError(*state, "TestObject", "attributeWithReservedEnumType"); 2631 2636 } 2632 2637 auto& impl = castedThis->wrapped(); … … 2643 2648 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2644 2649 if (UNLIKELY(!castedThis)) { 2645 return throwGetterTypeError(*state, "TestObj ", "putForwardsAttribute");2650 return throwGetterTypeError(*state, "TestObject", "putForwardsAttribute"); 2646 2651 } 2647 2652 auto& impl = castedThis->wrapped(); … … 2658 2663 auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue); 2659 2664 if (UNLIKELY(!castedThis)) { 2660 return throwGetterTypeError(*state, "TestObj ", "putForwardsNullableAttribute");2665 return throwGetterTypeError(*state, "TestObject", "putForwardsNullableAttribute"); 2661 2666 } 2662 2667 auto& impl = castedThis->wrapped(); … … 2703 2708 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2704 2709 if (UNLIKELY(!castedThis)) { 2705 return throwSetterTypeError(*state, "TestObj ", "TestSubObjEnabledBySetting");2710 return throwSetterTypeError(*state, "TestObject", "TestSubObjEnabledBySetting"); 2706 2711 } 2707 2712 // Shadowing a built-in constructor. … … 2716 2721 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2717 2722 if (UNLIKELY(!castedThis)) { 2718 return throwSetterTypeError(*state, "TestObj ", "enumAttr");2723 return throwSetterTypeError(*state, "TestObject", "enumAttr"); 2719 2724 } 2720 2725 auto& impl = castedThis->wrapped(); … … 2735 2740 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2736 2741 if (UNLIKELY(!castedThis)) { 2737 return throwSetterTypeError(*state, "TestObj ", "byteAttr");2742 return throwSetterTypeError(*state, "TestObject", "byteAttr"); 2738 2743 } 2739 2744 auto& impl = castedThis->wrapped(); … … 2752 2757 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2753 2758 if (UNLIKELY(!castedThis)) { 2754 return throwSetterTypeError(*state, "TestObj ", "octetAttr");2759 return throwSetterTypeError(*state, "TestObject", "octetAttr"); 2755 2760 } 2756 2761 auto& impl = castedThis->wrapped(); … … 2769 2774 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2770 2775 if (UNLIKELY(!castedThis)) { 2771 return throwSetterTypeError(*state, "TestObj ", "shortAttr");2776 return throwSetterTypeError(*state, "TestObject", "shortAttr"); 2772 2777 } 2773 2778 auto& impl = castedThis->wrapped(); … … 2786 2791 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2787 2792 if (UNLIKELY(!castedThis)) { 2788 return throwSetterTypeError(*state, "TestObj ", "clampedShortAttr");2793 return throwSetterTypeError(*state, "TestObject", "clampedShortAttr"); 2789 2794 } 2790 2795 auto& impl = castedThis->wrapped(); … … 2803 2808 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2804 2809 if (UNLIKELY(!castedThis)) { 2805 return throwSetterTypeError(*state, "TestObj ", "enforceRangeShortAttr");2810 return throwSetterTypeError(*state, "TestObject", "enforceRangeShortAttr"); 2806 2811 } 2807 2812 auto& impl = castedThis->wrapped(); … … 2820 2825 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2821 2826 if (UNLIKELY(!castedThis)) { 2822 return throwSetterTypeError(*state, "TestObj ", "unsignedShortAttr");2827 return throwSetterTypeError(*state, "TestObject", "unsignedShortAttr"); 2823 2828 } 2824 2829 auto& impl = castedThis->wrapped(); … … 2837 2842 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2838 2843 if (UNLIKELY(!castedThis)) { 2839 return throwSetterTypeError(*state, "TestObj ", "longAttr");2844 return throwSetterTypeError(*state, "TestObject", "longAttr"); 2840 2845 } 2841 2846 auto& impl = castedThis->wrapped(); … … 2854 2859 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2855 2860 if (UNLIKELY(!castedThis)) { 2856 return throwSetterTypeError(*state, "TestObj ", "longLongAttr");2861 return throwSetterTypeError(*state, "TestObject", "longLongAttr"); 2857 2862 } 2858 2863 auto& impl = castedThis->wrapped(); … … 2871 2876 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2872 2877 if (UNLIKELY(!castedThis)) { 2873 return throwSetterTypeError(*state, "TestObj ", "unsignedLongLongAttr");2878 return throwSetterTypeError(*state, "TestObject", "unsignedLongLongAttr"); 2874 2879 } 2875 2880 auto& impl = castedThis->wrapped(); … … 2888 2893 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2889 2894 if (UNLIKELY(!castedThis)) { 2890 return throwSetterTypeError(*state, "TestObj ", "stringAttr");2895 return throwSetterTypeError(*state, "TestObject", "stringAttr"); 2891 2896 } 2892 2897 auto& impl = castedThis->wrapped(); … … 2905 2910 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2906 2911 if (UNLIKELY(!castedThis)) { 2907 return throwSetterTypeError(*state, "TestObj ", "testObjAttr");2912 return throwSetterTypeError(*state, "TestObject", "testObjAttr"); 2908 2913 } 2909 2914 auto& impl = castedThis->wrapped(); 2910 2915 auto nativeValue = JSTestObj::toWrapped(value); 2911 2916 if (UNLIKELY(!nativeValue)) { 2912 throwAttributeTypeError(*state, "TestObj ", "testObjAttr", "TestObj");2917 throwAttributeTypeError(*state, "TestObject", "testObjAttr", "TestObj"); 2913 2918 return false; 2914 2919 } … … 2924 2929 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2925 2930 if (UNLIKELY(!castedThis)) { 2926 return throwSetterTypeError(*state, "TestObj ", "testNullableObjAttr");2931 return throwSetterTypeError(*state, "TestObject", "testNullableObjAttr"); 2927 2932 } 2928 2933 auto& impl = castedThis->wrapped(); … … 2944 2949 auto nativeValue = JSTestObj::toWrapped(value); 2945 2950 if (UNLIKELY(!nativeValue)) { 2946 throwAttributeTypeError(*state, "TestObj ", "lenientTestObjAttr", "TestObj");2951 throwAttributeTypeError(*state, "TestObject", "lenientTestObjAttr", "TestObj"); 2947 2952 return false; 2948 2953 } … … 2958 2963 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2959 2964 if (UNLIKELY(!castedThis)) { 2960 return throwSetterTypeError(*state, "TestObj ", "stringAttrTreatingNullAsEmptyString");2965 return throwSetterTypeError(*state, "TestObject", "stringAttrTreatingNullAsEmptyString"); 2961 2966 } 2962 2967 auto& impl = castedThis->wrapped(); … … 2975 2980 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2976 2981 if (UNLIKELY(!castedThis)) { 2977 return throwSetterTypeError(*state, "TestObj ", "XMLObjAttr");2982 return throwSetterTypeError(*state, "TestObject", "XMLObjAttr"); 2978 2983 } 2979 2984 auto& impl = castedThis->wrapped(); 2980 2985 auto nativeValue = JSTestObj::toWrapped(value); 2981 2986 if (UNLIKELY(!nativeValue)) { 2982 throwAttributeTypeError(*state, "TestObj ", "XMLObjAttr", "TestObj");2987 throwAttributeTypeError(*state, "TestObject", "XMLObjAttr", "TestObj"); 2983 2988 return false; 2984 2989 } … … 2994 2999 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 2995 3000 if (UNLIKELY(!castedThis)) { 2996 return throwSetterTypeError(*state, "TestObj ", "create");3001 return throwSetterTypeError(*state, "TestObject", "create"); 2997 3002 } 2998 3003 auto& impl = castedThis->wrapped(); … … 3011 3016 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3012 3017 if (UNLIKELY(!castedThis)) { 3013 return throwSetterTypeError(*state, "TestObj ", "reflectedStringAttr");3018 return throwSetterTypeError(*state, "TestObject", "reflectedStringAttr"); 3014 3019 } 3015 3020 auto& impl = castedThis->wrapped(); … … 3028 3033 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3029 3034 if (UNLIKELY(!castedThis)) { 3030 return throwSetterTypeError(*state, "TestObj ", "reflectedIntegralAttr");3035 return throwSetterTypeError(*state, "TestObject", "reflectedIntegralAttr"); 3031 3036 } 3032 3037 auto& impl = castedThis->wrapped(); … … 3045 3050 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3046 3051 if (UNLIKELY(!castedThis)) { 3047 return throwSetterTypeError(*state, "TestObj ", "reflectedUnsignedIntegralAttr");3052 return throwSetterTypeError(*state, "TestObject", "reflectedUnsignedIntegralAttr"); 3048 3053 } 3049 3054 auto& impl = castedThis->wrapped(); … … 3062 3067 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3063 3068 if (UNLIKELY(!castedThis)) { 3064 return throwSetterTypeError(*state, "TestObj ", "reflectedBooleanAttr");3069 return throwSetterTypeError(*state, "TestObject", "reflectedBooleanAttr"); 3065 3070 } 3066 3071 auto& impl = castedThis->wrapped(); … … 3079 3084 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3080 3085 if (UNLIKELY(!castedThis)) { 3081 return throwSetterTypeError(*state, "TestObj ", "reflectedURLAttr");3086 return throwSetterTypeError(*state, "TestObject", "reflectedURLAttr"); 3082 3087 } 3083 3088 auto& impl = castedThis->wrapped(); … … 3096 3101 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3097 3102 if (UNLIKELY(!castedThis)) { 3098 return throwSetterTypeError(*state, "TestObj ", "reflectedStringAttr");3103 return throwSetterTypeError(*state, "TestObject", "reflectedStringAttr"); 3099 3104 } 3100 3105 auto& impl = castedThis->wrapped(); … … 3113 3118 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3114 3119 if (UNLIKELY(!castedThis)) { 3115 return throwSetterTypeError(*state, "TestObj ", "reflectedCustomIntegralAttr");3120 return throwSetterTypeError(*state, "TestObject", "reflectedCustomIntegralAttr"); 3116 3121 } 3117 3122 auto& impl = castedThis->wrapped(); … … 3130 3135 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3131 3136 if (UNLIKELY(!castedThis)) { 3132 return throwSetterTypeError(*state, "TestObj ", "reflectedCustomBooleanAttr");3137 return throwSetterTypeError(*state, "TestObject", "reflectedCustomBooleanAttr"); 3133 3138 } 3134 3139 auto& impl = castedThis->wrapped(); … … 3147 3152 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3148 3153 if (UNLIKELY(!castedThis)) { 3149 return throwSetterTypeError(*state, "TestObj ", "reflectedCustomURLAttr");3154 return throwSetterTypeError(*state, "TestObject", "reflectedCustomURLAttr"); 3150 3155 } 3151 3156 auto& impl = castedThis->wrapped(); … … 3165 3170 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3166 3171 if (UNLIKELY(!castedThis)) { 3167 return throwSetterTypeError(*state, "TestObj ", "enabledAtRuntimeAttribute");3172 return throwSetterTypeError(*state, "TestObject", "enabledAtRuntimeAttribute"); 3168 3173 } 3169 3174 auto& impl = castedThis->wrapped(); … … 3183 3188 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3184 3189 if (UNLIKELY(!castedThis)) { 3185 return throwSetterTypeError(*state, "TestObj ", "typedArrayAttr");3190 return throwSetterTypeError(*state, "TestObject", "typedArrayAttr"); 3186 3191 } 3187 3192 auto& impl = castedThis->wrapped(); … … 3190 3195 return false; 3191 3196 if (UNLIKELY(!nativeValue)) { 3192 throwAttributeTypeError(*state, "TestObj ", "typedArrayAttr", "Float32Array");3197 throwAttributeTypeError(*state, "TestObject", "typedArrayAttr", "Float32Array"); 3193 3198 return false; 3194 3199 } … … 3204 3209 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3205 3210 if (UNLIKELY(!castedThis)) { 3206 return throwSetterTypeError(*state, "TestObj ", "attrWithGetterException");3211 return throwSetterTypeError(*state, "TestObject", "attrWithGetterException"); 3207 3212 } 3208 3213 auto& impl = castedThis->wrapped(); … … 3221 3226 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3222 3227 if (UNLIKELY(!castedThis)) { 3223 return throwSetterTypeError(*state, "TestObj ", "attrWithGetterExceptionWithMessage");3228 return throwSetterTypeError(*state, "TestObject", "attrWithGetterExceptionWithMessage"); 3224 3229 } 3225 3230 auto& impl = castedThis->wrapped(); … … 3238 3243 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3239 3244 if (UNLIKELY(!castedThis)) { 3240 return throwSetterTypeError(*state, "TestObj ", "attrWithSetterException");3245 return throwSetterTypeError(*state, "TestObject", "attrWithSetterException"); 3241 3246 } 3242 3247 auto& impl = castedThis->wrapped(); … … 3257 3262 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3258 3263 if (UNLIKELY(!castedThis)) { 3259 return throwSetterTypeError(*state, "TestObj ", "attrWithSetterExceptionWithMessage");3264 return throwSetterTypeError(*state, "TestObject", "attrWithSetterExceptionWithMessage"); 3260 3265 } 3261 3266 auto& impl = castedThis->wrapped(); … … 3276 3281 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3277 3282 if (UNLIKELY(!castedThis)) { 3278 return throwSetterTypeError(*state, "TestObj ", "stringAttrWithGetterException");3283 return throwSetterTypeError(*state, "TestObject", "stringAttrWithGetterException"); 3279 3284 } 3280 3285 auto& impl = castedThis->wrapped(); … … 3293 3298 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3294 3299 if (UNLIKELY(!castedThis)) { 3295 return throwSetterTypeError(*state, "TestObj ", "stringAttrWithSetterException");3300 return throwSetterTypeError(*state, "TestObject", "stringAttrWithSetterException"); 3296 3301 } 3297 3302 auto& impl = castedThis->wrapped(); … … 3312 3317 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3313 3318 if (UNLIKELY(!castedThis)) { 3314 return throwSetterTypeError(*state, "TestObj ", "strictTypeCheckingAttribute");3319 return throwSetterTypeError(*state, "TestObject", "strictTypeCheckingAttribute"); 3315 3320 } 3316 3321 auto& impl = castedThis->wrapped(); … … 3319 3324 nativeValue = JSTestObj::toWrapped(value); 3320 3325 if (UNLIKELY(!nativeValue)) { 3321 throwAttributeTypeError(*state, "TestObj ", "strictTypeCheckingAttribute", "TestObj");3326 throwAttributeTypeError(*state, "TestObject", "strictTypeCheckingAttribute", "TestObj"); 3322 3327 return false; 3323 3328 } … … 3334 3339 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3335 3340 if (UNLIKELY(!castedThis)) { 3336 return throwSetterTypeError(*state, "TestObj ", "customAttr");3341 return throwSetterTypeError(*state, "TestObject", "customAttr"); 3337 3342 } 3338 3343 castedThis->setCustomAttr(*state, value); … … 3347 3352 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3348 3353 if (UNLIKELY(!castedThis)) { 3349 return throwSetterTypeError(*state, "TestObj ", "onfoo");3354 return throwSetterTypeError(*state, "TestObject", "onfoo"); 3350 3355 } 3351 3356 setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().fooEvent, value); … … 3360 3365 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3361 3366 if (UNLIKELY(!castedThis)) { 3362 return throwSetterTypeError(*state, "TestObj ", "onwebkitfoo");3367 return throwSetterTypeError(*state, "TestObject", "onwebkitfoo"); 3363 3368 } 3364 3369 setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().fooEvent, value); … … 3373 3378 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3374 3379 if (UNLIKELY(!castedThis)) { 3375 return throwSetterTypeError(*state, "TestObj ", "withScriptStateAttribute");3380 return throwSetterTypeError(*state, "TestObject", "withScriptStateAttribute"); 3376 3381 } 3377 3382 auto& impl = castedThis->wrapped(); … … 3390 3395 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3391 3396 if (UNLIKELY(!castedThis)) { 3392 return throwSetterTypeError(*state, "TestObj ", "withCallWithAndSetterCallWithAttribute");3397 return throwSetterTypeError(*state, "TestObject", "withCallWithAndSetterCallWithAttribute"); 3393 3398 } 3394 3399 auto& impl = castedThis->wrapped(); … … 3407 3412 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3408 3413 if (UNLIKELY(!castedThis)) { 3409 return throwSetterTypeError(*state, "TestObj ", "withScriptExecutionContextAttribute");3414 return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAttribute"); 3410 3415 } 3411 3416 auto& impl = castedThis->wrapped(); 3412 3417 auto nativeValue = JSTestObj::toWrapped(value); 3413 3418 if (UNLIKELY(!nativeValue)) { 3414 throwAttributeTypeError(*state, "TestObj ", "withScriptExecutionContextAttribute", "TestObj");3419 throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAttribute", "TestObj"); 3415 3420 return false; 3416 3421 } … … 3429 3434 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3430 3435 if (UNLIKELY(!castedThis)) { 3431 return throwSetterTypeError(*state, "TestObj ", "withScriptStateAttributeRaises");3436 return throwSetterTypeError(*state, "TestObject", "withScriptStateAttributeRaises"); 3432 3437 } 3433 3438 auto& impl = castedThis->wrapped(); 3434 3439 auto nativeValue = JSTestObj::toWrapped(value); 3435 3440 if (UNLIKELY(!nativeValue)) { 3436 throwAttributeTypeError(*state, "TestObj ", "withScriptStateAttributeRaises", "TestObj");3441 throwAttributeTypeError(*state, "TestObject", "withScriptStateAttributeRaises", "TestObj"); 3437 3442 return false; 3438 3443 } … … 3448 3453 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3449 3454 if (UNLIKELY(!castedThis)) { 3450 return throwSetterTypeError(*state, "TestObj ", "withScriptExecutionContextAttributeRaises");3455 return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAttributeRaises"); 3451 3456 } 3452 3457 auto& impl = castedThis->wrapped(); 3453 3458 auto nativeValue = JSTestObj::toWrapped(value); 3454 3459 if (UNLIKELY(!nativeValue)) { 3455 throwAttributeTypeError(*state, "TestObj ", "withScriptExecutionContextAttributeRaises", "TestObj");3460 throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAttributeRaises", "TestObj"); 3456 3461 return false; 3457 3462 } … … 3470 3475 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3471 3476 if (UNLIKELY(!castedThis)) { 3472 return throwSetterTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateAttribute");3477 return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttribute"); 3473 3478 } 3474 3479 auto& impl = castedThis->wrapped(); 3475 3480 auto nativeValue = JSTestObj::toWrapped(value); 3476 3481 if (UNLIKELY(!nativeValue)) { 3477 throwAttributeTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateAttribute", "TestObj");3482 throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttribute", "TestObj"); 3478 3483 return false; 3479 3484 } … … 3492 3497 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3493 3498 if (UNLIKELY(!castedThis)) { 3494 return throwSetterTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateAttributeRaises");3499 return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttributeRaises"); 3495 3500 } 3496 3501 auto& impl = castedThis->wrapped(); 3497 3502 auto nativeValue = JSTestObj::toWrapped(value); 3498 3503 if (UNLIKELY(!nativeValue)) { 3499 throwAttributeTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateAttributeRaises", "TestObj");3504 throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttributeRaises", "TestObj"); 3500 3505 return false; 3501 3506 } … … 3514 3519 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3515 3520 if (UNLIKELY(!castedThis)) { 3516 return throwSetterTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");3521 return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpacesAttribute"); 3517 3522 } 3518 3523 auto& impl = castedThis->wrapped(); 3519 3524 auto nativeValue = JSTestObj::toWrapped(value); 3520 3525 if (UNLIKELY(!nativeValue)) { 3521 throwAttributeTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateWithSpacesAttribute", "TestObj");3526 throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpacesAttribute", "TestObj"); 3522 3527 return false; 3523 3528 } … … 3536 3541 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3537 3542 if (UNLIKELY(!castedThis)) { 3538 return throwSetterTypeError(*state, "TestObj ", "withScriptArgumentsAndCallStackAttribute");3543 return throwSetterTypeError(*state, "TestObject", "withScriptArgumentsAndCallStackAttribute"); 3539 3544 } 3540 3545 auto& impl = castedThis->wrapped(); 3541 3546 auto nativeValue = JSTestObj::toWrapped(value); 3542 3547 if (UNLIKELY(!nativeValue)) { 3543 throwAttributeTypeError(*state, "TestObj ", "withScriptArgumentsAndCallStackAttribute", "TestObj");3548 throwAttributeTypeError(*state, "TestObject", "withScriptArgumentsAndCallStackAttribute", "TestObj"); 3544 3549 return false; 3545 3550 } … … 3556 3561 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3557 3562 if (UNLIKELY(!castedThis)) { 3558 return throwSetterTypeError(*state, "TestObj ", "conditionalAttr1");3563 return throwSetterTypeError(*state, "TestObject", "conditionalAttr1"); 3559 3564 } 3560 3565 auto& impl = castedThis->wrapped(); … … 3575 3580 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3576 3581 if (UNLIKELY(!castedThis)) { 3577 return throwSetterTypeError(*state, "TestObj ", "conditionalAttr2");3582 return throwSetterTypeError(*state, "TestObject", "conditionalAttr2"); 3578 3583 } 3579 3584 auto& impl = castedThis->wrapped(); … … 3594 3599 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3595 3600 if (UNLIKELY(!castedThis)) { 3596 return throwSetterTypeError(*state, "TestObj ", "conditionalAttr3");3601 return throwSetterTypeError(*state, "TestObject", "conditionalAttr3"); 3597 3602 } 3598 3603 auto& impl = castedThis->wrapped(); … … 3613 3618 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3614 3619 if (UNLIKELY(!castedThis)) { 3615 return throwSetterTypeError(*state, "TestObj ", "conditionalAttr4");3620 return throwSetterTypeError(*state, "TestObject", "conditionalAttr4"); 3616 3621 } 3617 3622 // Shadowing a built-in constructor. … … 3628 3633 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3629 3634 if (UNLIKELY(!castedThis)) { 3630 return throwSetterTypeError(*state, "TestObj ", "conditionalAttr5");3635 return throwSetterTypeError(*state, "TestObject", "conditionalAttr5"); 3631 3636 } 3632 3637 // Shadowing a built-in constructor. … … 3643 3648 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3644 3649 if (UNLIKELY(!castedThis)) { 3645 return throwSetterTypeError(*state, "TestObj ", "conditionalAttr6");3650 return throwSetterTypeError(*state, "TestObject", "conditionalAttr6"); 3646 3651 } 3647 3652 // Shadowing a built-in constructor. … … 3657 3662 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3658 3663 if (UNLIKELY(!castedThis)) { 3659 return throwSetterTypeError(*state, "TestObj ", "anyAttribute");3664 return throwSetterTypeError(*state, "TestObject", "anyAttribute"); 3660 3665 } 3661 3666 auto& impl = castedThis->wrapped(); … … 3672 3677 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3673 3678 if (UNLIKELY(!castedThis)) { 3674 return throwSetterTypeError(*state, "TestObj ", "mutablePoint");3679 return throwSetterTypeError(*state, "TestObject", "mutablePoint"); 3675 3680 } 3676 3681 auto& impl = castedThis->wrapped(); … … 3687 3692 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3688 3693 if (UNLIKELY(!castedThis)) { 3689 return throwSetterTypeError(*state, "TestObj ", "immutablePoint");3694 return throwSetterTypeError(*state, "TestObject", "immutablePoint"); 3690 3695 } 3691 3696 auto& impl = castedThis->wrapped(); … … 3702 3707 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3703 3708 if (UNLIKELY(!castedThis)) { 3704 return throwSetterTypeError(*state, "TestObj ", "strawberry");3709 return throwSetterTypeError(*state, "TestObject", "strawberry"); 3705 3710 } 3706 3711 auto& impl = castedThis->wrapped(); … … 3719 3724 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3720 3725 if (UNLIKELY(!castedThis)) { 3721 return throwSetterTypeError(*state, "TestObj ", "strictFloat");3726 return throwSetterTypeError(*state, "TestObject", "strictFloat"); 3722 3727 } 3723 3728 auto& impl = castedThis->wrapped(); … … 3736 3741 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3737 3742 if (UNLIKELY(!castedThis)) { 3738 return throwSetterTypeError(*state, "TestObj ", "id");3743 return throwSetterTypeError(*state, "TestObject", "id"); 3739 3744 } 3740 3745 auto& impl = castedThis->wrapped(); … … 3753 3758 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3754 3759 if (UNLIKELY(!castedThis)) { 3755 return throwSetterTypeError(*state, "TestObj ", "replaceableAttribute");3760 return throwSetterTypeError(*state, "TestObject", "replaceableAttribute"); 3756 3761 } 3757 3762 // Shadowing a built-in property. … … 3766 3771 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3767 3772 if (UNLIKELY(!castedThis)) { 3768 return throwSetterTypeError(*state, "TestObj ", "nullableLongSettableAttribute");3773 return throwSetterTypeError(*state, "TestObject", "nullableLongSettableAttribute"); 3769 3774 } 3770 3775 auto& impl = castedThis->wrapped(); … … 3783 3788 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3784 3789 if (UNLIKELY(!castedThis)) { 3785 return throwSetterTypeError(*state, "TestObj ", "nullableStringSettableAttribute");3790 return throwSetterTypeError(*state, "TestObject", "nullableStringSettableAttribute"); 3786 3791 } 3787 3792 auto& impl = castedThis->wrapped(); … … 3800 3805 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3801 3806 if (UNLIKELY(!castedThis)) { 3802 return throwSetterTypeError(*state, "TestObj ", "nullableStringValue");3807 return throwSetterTypeError(*state, "TestObject", "nullableStringValue"); 3803 3808 } 3804 3809 auto& impl = castedThis->wrapped(); … … 3817 3822 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3818 3823 if (UNLIKELY(!castedThis)) { 3819 return throwSetterTypeError(*state, "TestObj ", "attributeWithReservedEnumType");3824 return throwSetterTypeError(*state, "TestObject", "attributeWithReservedEnumType"); 3820 3825 } 3821 3826 auto& impl = castedThis->wrapped(); … … 3836 3841 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3837 3842 if (UNLIKELY(!castedThis)) { 3838 return throwSetterTypeError(*state, "TestObj ", "putForwardsAttribute");3843 return throwSetterTypeError(*state, "TestObject", "putForwardsAttribute"); 3839 3844 } 3840 3845 Ref<TestNode> forwardedImpl = castedThis->wrapped().putForwardsAttribute(); … … 3854 3859 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue)); 3855 3860 if (UNLIKELY(!castedThis)) { 3856 return throwSetterTypeError(*state, "TestObj ", "putForwardsNullableAttribute");3861 return throwSetterTypeError(*state, "TestObject", "putForwardsNullableAttribute"); 3857 3862 } 3858 3863 RefPtr<TestNode> forwardedImpl = castedThis->wrapped().putForwardsNullableAttribute(); … … 3888 3893 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3889 3894 if (UNLIKELY(!castedThis)) 3890 return throwThisTypeError(*state, "TestObj ", "enabledAtRuntimeOperation");3895 return throwThisTypeError(*state, "TestObject", "enabledAtRuntimeOperation"); 3891 3896 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 3892 3897 auto& impl = castedThis->wrapped(); … … 3908 3913 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3909 3914 if (UNLIKELY(!castedThis)) 3910 return throwThisTypeError(*state, "TestObj ", "enabledAtRuntimeOperation");3915 return throwThisTypeError(*state, "TestObject", "enabledAtRuntimeOperation"); 3911 3916 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 3912 3917 auto& impl = castedThis->wrapped(); … … 3945 3950 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3946 3951 if (UNLIKELY(!castedThis)) 3947 return throwThisTypeError(*state, "TestObj ", "voidMethod");3952 return throwThisTypeError(*state, "TestObject", "voidMethod"); 3948 3953 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 3949 3954 auto& impl = castedThis->wrapped(); … … 3957 3962 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3958 3963 if (UNLIKELY(!castedThis)) 3959 return throwThisTypeError(*state, "TestObj ", "voidMethodWithArgs");3964 return throwThisTypeError(*state, "TestObject", "voidMethodWithArgs"); 3960 3965 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 3961 3966 auto& impl = castedThis->wrapped(); … … 3970 3975 auto objArg = JSTestObj::toWrapped(state->argument(2)); 3971 3976 if (UNLIKELY(!objArg)) 3972 return throwArgumentTypeError(*state, 2, "objArg", "TestObj ", "voidMethodWithArgs", "TestObj");3977 return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "voidMethodWithArgs", "TestObj"); 3973 3978 impl.voidMethodWithArgs(WTFMove(longArg), WTFMove(strArg), *objArg); 3974 3979 return JSValue::encode(jsUndefined()); … … 3980 3985 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3981 3986 if (UNLIKELY(!castedThis)) 3982 return throwThisTypeError(*state, "TestObj ", "byteMethod");3987 return throwThisTypeError(*state, "TestObject", "byteMethod"); 3983 3988 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 3984 3989 auto& impl = castedThis->wrapped(); … … 3992 3997 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3993 3998 if (UNLIKELY(!castedThis)) 3994 return throwThisTypeError(*state, "TestObj ", "byteMethodWithArgs");3999 return throwThisTypeError(*state, "TestObject", "byteMethodWithArgs"); 3995 4000 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 3996 4001 auto& impl = castedThis->wrapped(); … … 4005 4010 auto objArg = JSTestObj::toWrapped(state->argument(2)); 4006 4011 if (UNLIKELY(!objArg)) 4007 return throwArgumentTypeError(*state, 2, "objArg", "TestObj ", "byteMethodWithArgs", "TestObj");4012 return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "byteMethodWithArgs", "TestObj"); 4008 4013 JSValue result = jsNumber(impl.byteMethodWithArgs(WTFMove(byteArg), WTFMove(strArg), *objArg)); 4009 4014 return JSValue::encode(result); … … 4015 4020 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4016 4021 if (UNLIKELY(!castedThis)) 4017 return throwThisTypeError(*state, "TestObj ", "octetMethod");4022 return throwThisTypeError(*state, "TestObject", "octetMethod"); 4018 4023 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4019 4024 auto& impl = castedThis->wrapped(); … … 4027 4032 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4028 4033 if (UNLIKELY(!castedThis)) 4029 return throwThisTypeError(*state, "TestObj ", "octetMethodWithArgs");4034 return throwThisTypeError(*state, "TestObject", "octetMethodWithArgs"); 4030 4035 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4031 4036 auto& impl = castedThis->wrapped(); … … 4040 4045 auto objArg = JSTestObj::toWrapped(state->argument(2)); 4041 4046 if (UNLIKELY(!objArg)) 4042 return throwArgumentTypeError(*state, 2, "objArg", "TestObj ", "octetMethodWithArgs", "TestObj");4047 return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "octetMethodWithArgs", "TestObj"); 4043 4048 JSValue result = jsNumber(impl.octetMethodWithArgs(WTFMove(octetArg), WTFMove(strArg), *objArg)); 4044 4049 return JSValue::encode(result); … … 4050 4055 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4051 4056 if (UNLIKELY(!castedThis)) 4052 return throwThisTypeError(*state, "TestObj ", "longMethod");4057 return throwThisTypeError(*state, "TestObject", "longMethod"); 4053 4058 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4054 4059 auto& impl = castedThis->wrapped(); … … 4062 4067 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4063 4068 if (UNLIKELY(!castedThis)) 4064 return throwThisTypeError(*state, "TestObj ", "longMethodWithArgs");4069 return throwThisTypeError(*state, "TestObject", "longMethodWithArgs"); 4065 4070 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4066 4071 auto& impl = castedThis->wrapped(); … … 4075 4080 auto objArg = JSTestObj::toWrapped(state->argument(2)); 4076 4081 if (UNLIKELY(!objArg)) 4077 return throwArgumentTypeError(*state, 2, "objArg", "TestObj ", "longMethodWithArgs", "TestObj");4082 return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "longMethodWithArgs", "TestObj"); 4078 4083 JSValue result = jsNumber(impl.longMethodWithArgs(WTFMove(longArg), WTFMove(strArg), *objArg)); 4079 4084 return JSValue::encode(result); … … 4085 4090 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4086 4091 if (UNLIKELY(!castedThis)) 4087 return throwThisTypeError(*state, "TestObj ", "objMethod");4092 return throwThisTypeError(*state, "TestObject", "objMethod"); 4088 4093 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4089 4094 auto& impl = castedThis->wrapped(); … … 4097 4102 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4098 4103 if (UNLIKELY(!castedThis)) 4099 return throwThisTypeError(*state, "TestObj ", "objMethodWithArgs");4104 return throwThisTypeError(*state, "TestObject", "objMethodWithArgs"); 4100 4105 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4101 4106 auto& impl = castedThis->wrapped(); … … 4110 4115 auto objArg = JSTestObj::toWrapped(state->argument(2)); 4111 4116 if (UNLIKELY(!objArg)) 4112 return throwArgumentTypeError(*state, 2, "objArg", "TestObj ", "objMethodWithArgs", "TestObj");4117 return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "objMethodWithArgs", "TestObj"); 4113 4118 JSValue result = toJS(state, castedThis->globalObject(), impl.objMethodWithArgs(WTFMove(longArg), WTFMove(strArg), *objArg)); 4114 4119 return JSValue::encode(result); … … 4120 4125 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4121 4126 if (UNLIKELY(!castedThis)) 4122 return throwThisTypeError(*state, "TestObj ", "unforgeableMethod");4127 return throwThisTypeError(*state, "TestObject", "unforgeableMethod"); 4123 4128 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4124 4129 auto& impl = castedThis->wrapped(); … … 4132 4137 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4133 4138 if (UNLIKELY(!castedThis)) 4134 return throwThisTypeError(*state, "TestObj ", "methodWithArgTreatingNullAsEmptyString");4139 return throwThisTypeError(*state, "TestObject", "methodWithArgTreatingNullAsEmptyString"); 4135 4140 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4136 4141 auto& impl = castedThis->wrapped(); … … 4149 4154 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4150 4155 if (UNLIKELY(!castedThis)) 4151 return throwThisTypeError(*state, "TestObj ", "methodWithXPathNSResolverParameter");4156 return throwThisTypeError(*state, "TestObject", "methodWithXPathNSResolverParameter"); 4152 4157 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4153 4158 auto& impl = castedThis->wrapped(); … … 4158 4163 return JSValue::encode(jsUndefined()); 4159 4164 if (UNLIKELY(!resolver)) 4160 return throwArgumentTypeError(*state, 0, "resolver", "TestObj ", "methodWithXPathNSResolverParameter", "XPathNSResolver");4165 return throwArgumentTypeError(*state, 0, "resolver", "TestObject", "methodWithXPathNSResolverParameter", "XPathNSResolver"); 4161 4166 impl.methodWithXPathNSResolverParameter(*resolver); 4162 4167 return JSValue::encode(jsUndefined()); … … 4168 4173 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4169 4174 if (UNLIKELY(!castedThis)) 4170 return throwThisTypeError(*state, "TestObj ", "nullableStringMethod");4175 return throwThisTypeError(*state, "TestObject", "nullableStringMethod"); 4171 4176 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4172 4177 auto& impl = castedThis->wrapped(); … … 4186 4191 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4187 4192 if (UNLIKELY(!castedThis)) 4188 return throwThisTypeError(*state, "TestObj ", "nullableStringSpecialMethod");4193 return throwThisTypeError(*state, "TestObject", "nullableStringSpecialMethod"); 4189 4194 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4190 4195 auto& impl = castedThis->wrapped(); … … 4203 4208 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4204 4209 if (UNLIKELY(!castedThis)) 4205 return throwThisTypeError(*state, "TestObj ", "methodWithEnumArg");4210 return throwThisTypeError(*state, "TestObject", "methodWithEnumArg"); 4206 4211 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4207 4212 auto& impl = castedThis->wrapped(); … … 4214 4219 return JSValue::encode(jsUndefined()); 4215 4220 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>()); 4217 4222 enumArg = optionalValue.value(); 4218 4223 impl.methodWithEnumArg(enumArg); … … 4225 4230 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4226 4231 if (UNLIKELY(!castedThis)) 4227 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalEnumArg");4232 return throwThisTypeError(*state, "TestObject", "methodWithOptionalEnumArg"); 4228 4233 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4229 4234 auto& impl = castedThis->wrapped(); … … 4235 4240 return JSValue::encode(jsUndefined()); 4236 4241 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>()); 4238 4243 } 4239 4244 impl.methodWithOptionalEnumArg(enumArg); … … 4246 4251 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4247 4252 if (UNLIKELY(!castedThis)) 4248 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalEnumArgAndDefaultValue");4253 return throwThisTypeError(*state, "TestObject", "methodWithOptionalEnumArgAndDefaultValue"); 4249 4254 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4250 4255 auto& impl = castedThis->wrapped(); … … 4258 4263 return JSValue::encode(jsUndefined()); 4259 4264 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>()); 4261 4266 enumArg = optionalValue.value(); 4262 4267 } … … 4270 4275 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4271 4276 if (UNLIKELY(!castedThis)) 4272 return throwThisTypeError(*state, "TestObj ", "methodThatRequiresAllArgsAndThrows");4277 return throwThisTypeError(*state, "TestObject", "methodThatRequiresAllArgsAndThrows"); 4273 4278 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4274 4279 auto& impl = castedThis->wrapped(); … … 4281 4286 auto objArg = JSTestObj::toWrapped(state->argument(1)); 4282 4287 if (UNLIKELY(!objArg)) 4283 return throwArgumentTypeError(*state, 1, "objArg", "TestObj ", "methodThatRequiresAllArgsAndThrows", "TestObj");4288 return throwArgumentTypeError(*state, 1, "objArg", "TestObject", "methodThatRequiresAllArgsAndThrows", "TestObj"); 4284 4289 JSValue result = toJS(state, castedThis->globalObject(), impl.methodThatRequiresAllArgsAndThrows(WTFMove(strArg), *objArg, ec)); 4285 4290 … … 4293 4298 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4294 4299 if (UNLIKELY(!castedThis)) 4295 return throwThisTypeError(*state, "TestObj ", "serializedValue");4300 return throwThisTypeError(*state, "TestObject", "serializedValue"); 4296 4301 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4297 4302 auto& impl = castedThis->wrapped(); … … 4310 4315 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4311 4316 if (UNLIKELY(!castedThis)) 4312 return throwThisTypeError(*state, "TestObj ", "optionsObject");4317 return throwThisTypeError(*state, "TestObject", "optionsObject"); 4313 4318 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4314 4319 auto& impl = castedThis->wrapped(); … … 4326 4331 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4327 4332 if (UNLIKELY(!castedThis)) 4328 return throwThisTypeError(*state, "TestObj ", "methodWithException");4333 return throwThisTypeError(*state, "TestObject", "methodWithException"); 4329 4334 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4330 4335 auto& impl = castedThis->wrapped(); … … 4340 4345 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4341 4346 if (UNLIKELY(!castedThis)) 4342 return throwThisTypeError(*state, "TestObj ", "methodWithExceptionWithMessage");4347 return throwThisTypeError(*state, "TestObject", "methodWithExceptionWithMessage"); 4343 4348 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4344 4349 auto& impl = castedThis->wrapped(); … … 4354 4359 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4355 4360 if (UNLIKELY(!castedThis)) 4356 return throwThisTypeError(*state, "TestObj ", "customMethod");4361 return throwThisTypeError(*state, "TestObject", "customMethod"); 4357 4362 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4358 4363 return JSValue::encode(castedThis->customMethod(*state)); … … 4364 4369 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4365 4370 if (UNLIKELY(!castedThis)) 4366 return throwThisTypeError(*state, "TestObj ", "customMethodWithArgs");4371 return throwThisTypeError(*state, "TestObject", "customMethodWithArgs"); 4367 4372 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4368 4373 return JSValue::encode(castedThis->customMethodWithArgs(*state)); … … 4374 4379 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4375 4380 if (UNLIKELY(!castedThis)) 4376 return throwThisTypeError(*state, "TestObj ", "privateMethod");4381 return throwThisTypeError(*state, "TestObject", "privateMethod"); 4377 4382 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4378 4383 auto& impl = castedThis->wrapped(); … … 4391 4396 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4392 4397 if (UNLIKELY(!castedThis)) 4393 return throwThisTypeError(*state, "TestObj ", "publicAndPrivateMethod");4398 return throwThisTypeError(*state, "TestObject", "publicAndPrivateMethod"); 4394 4399 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4395 4400 auto& impl = castedThis->wrapped(); … … 4408 4413 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4409 4414 if (UNLIKELY(!castedThis)) 4410 return throwThisTypeError(*state, "TestObj ", "addEventListener");4415 return throwThisTypeError(*state, "TestObject", "addEventListener"); 4411 4416 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4412 4417 auto& impl = castedThis->wrapped(); … … 4418 4423 auto listener = JSEventListener::create(state->argument(1), *castedThis, false, currentWorld(state)); 4419 4424 if (UNLIKELY(!listener)) 4420 return throwArgumentTypeError(*state, 1, "listener", "TestObj ", "addEventListener", "EventListener");4425 return throwArgumentTypeError(*state, 1, "listener", "TestObject", "addEventListener", "EventListener"); 4421 4426 auto useCapture = state->argument(2).toBoolean(state); 4422 4427 if (UNLIKELY(state->hadException())) … … 4431 4436 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4432 4437 if (UNLIKELY(!castedThis)) 4433 return throwThisTypeError(*state, "TestObj ", "removeEventListener");4438 return throwThisTypeError(*state, "TestObject", "removeEventListener"); 4434 4439 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4435 4440 auto& impl = castedThis->wrapped(); … … 4441 4446 auto listener = JSEventListener::create(state->argument(1), *castedThis, false, currentWorld(state)); 4442 4447 if (UNLIKELY(!listener)) 4443 return throwArgumentTypeError(*state, 1, "listener", "TestObj ", "removeEventListener", "EventListener");4448 return throwArgumentTypeError(*state, 1, "listener", "TestObject", "removeEventListener", "EventListener"); 4444 4449 auto useCapture = state->argument(2).toBoolean(state); 4445 4450 if (UNLIKELY(state->hadException())) … … 4454 4459 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4455 4460 if (UNLIKELY(!castedThis)) 4456 return throwThisTypeError(*state, "TestObj ", "withScriptStateVoid");4461 return throwThisTypeError(*state, "TestObject", "withScriptStateVoid"); 4457 4462 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4458 4463 auto& impl = castedThis->wrapped(); … … 4466 4471 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4467 4472 if (UNLIKELY(!castedThis)) 4468 return throwThisTypeError(*state, "TestObj ", "withScriptStateObj");4473 return throwThisTypeError(*state, "TestObject", "withScriptStateObj"); 4469 4474 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4470 4475 auto& impl = castedThis->wrapped(); … … 4480 4485 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4481 4486 if (UNLIKELY(!castedThis)) 4482 return throwThisTypeError(*state, "TestObj ", "withScriptStateVoidException");4487 return throwThisTypeError(*state, "TestObject", "withScriptStateVoidException"); 4483 4488 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4484 4489 auto& impl = castedThis->wrapped(); … … 4494 4499 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4495 4500 if (UNLIKELY(!castedThis)) 4496 return throwThisTypeError(*state, "TestObj ", "withScriptStateObjException");4501 return throwThisTypeError(*state, "TestObject", "withScriptStateObjException"); 4497 4502 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4498 4503 auto& impl = castedThis->wrapped(); … … 4511 4516 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4512 4517 if (UNLIKELY(!castedThis)) 4513 return throwThisTypeError(*state, "TestObj ", "withScriptExecutionContext");4518 return throwThisTypeError(*state, "TestObject", "withScriptExecutionContext"); 4514 4519 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4515 4520 auto& impl = castedThis->wrapped(); … … 4526 4531 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4527 4532 if (UNLIKELY(!castedThis)) 4528 return throwThisTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptState");4533 return throwThisTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptState"); 4529 4534 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4530 4535 auto& impl = castedThis->wrapped(); … … 4541 4546 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4542 4547 if (UNLIKELY(!castedThis)) 4543 return throwThisTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateObjException");4548 return throwThisTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateObjException"); 4544 4549 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4545 4550 auto& impl = castedThis->wrapped(); … … 4561 4566 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4562 4567 if (UNLIKELY(!castedThis)) 4563 return throwThisTypeError(*state, "TestObj ", "withScriptExecutionContextAndScriptStateWithSpaces");4568 return throwThisTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpaces"); 4564 4569 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4565 4570 auto& impl = castedThis->wrapped(); … … 4578 4583 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4579 4584 if (UNLIKELY(!castedThis)) 4580 return throwThisTypeError(*state, "TestObj ", "withScriptArgumentsAndCallStack");4585 return throwThisTypeError(*state, "TestObject", "withScriptArgumentsAndCallStack"); 4581 4586 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4582 4587 auto& impl = castedThis->wrapped(); … … 4591 4596 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4592 4597 if (UNLIKELY(!castedThis)) 4593 return throwThisTypeError(*state, "TestObj ", "withDocumentArgument");4598 return throwThisTypeError(*state, "TestObject", "withDocumentArgument"); 4594 4599 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4595 4600 auto& impl = castedThis->wrapped(); … … 4608 4613 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4609 4614 if (UNLIKELY(!castedThis)) 4610 return throwThisTypeError(*state, "TestObj ", "withCallerDocumentArgument");4615 return throwThisTypeError(*state, "TestObject", "withCallerDocumentArgument"); 4611 4616 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4612 4617 auto& impl = castedThis->wrapped(); … … 4623 4628 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4624 4629 if (UNLIKELY(!castedThis)) 4625 return throwThisTypeError(*state, "TestObj ", "withCallerWindowArgument");4630 return throwThisTypeError(*state, "TestObject", "withCallerWindowArgument"); 4626 4631 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4627 4632 auto& impl = castedThis->wrapped(); … … 4635 4640 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4636 4641 if (UNLIKELY(!castedThis)) 4637 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalArg");4642 return throwThisTypeError(*state, "TestObject", "methodWithOptionalArg"); 4638 4643 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4639 4644 auto& impl = castedThis->wrapped(); … … 4650 4655 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4651 4656 if (UNLIKELY(!castedThis)) 4652 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalArgAndDefaultValue");4657 return throwThisTypeError(*state, "TestObject", "methodWithOptionalArgAndDefaultValue"); 4653 4658 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4654 4659 auto& impl = castedThis->wrapped(); … … 4665 4670 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4666 4671 if (UNLIKELY(!castedThis)) 4667 return throwThisTypeError(*state, "TestObj ", "methodWithNonOptionalArgAndOptionalArg");4672 return throwThisTypeError(*state, "TestObject", "methodWithNonOptionalArgAndOptionalArg"); 4668 4673 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4669 4674 auto& impl = castedThis->wrapped(); … … 4685 4690 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4686 4691 if (UNLIKELY(!castedThis)) 4687 return throwThisTypeError(*state, "TestObj ", "methodWithNonOptionalArgAndTwoOptionalArgs");4692 return throwThisTypeError(*state, "TestObject", "methodWithNonOptionalArgAndTwoOptionalArgs"); 4688 4693 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4689 4694 auto& impl = castedThis->wrapped(); … … 4708 4713 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4709 4714 if (UNLIKELY(!castedThis)) 4710 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalString");4715 return throwThisTypeError(*state, "TestObject", "methodWithOptionalString"); 4711 4716 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4712 4717 auto& impl = castedThis->wrapped(); … … 4723 4728 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4724 4729 if (UNLIKELY(!castedThis)) 4725 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalAtomicString");4730 return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicString"); 4726 4731 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4727 4732 auto& impl = castedThis->wrapped(); … … 4738 4743 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4739 4744 if (UNLIKELY(!castedThis)) 4740 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalStringAndDefaultValue");4745 return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringAndDefaultValue"); 4741 4746 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4742 4747 auto& impl = castedThis->wrapped(); … … 4753 4758 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4754 4759 if (UNLIKELY(!castedThis)) 4755 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalAtomicStringAndDefaultValue");4760 return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicStringAndDefaultValue"); 4756 4761 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4757 4762 auto& impl = castedThis->wrapped(); … … 4768 4773 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4769 4774 if (UNLIKELY(!castedThis)) 4770 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalStringIsNull");4775 return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringIsNull"); 4771 4776 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4772 4777 auto& impl = castedThis->wrapped(); … … 4783 4788 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4784 4789 if (UNLIKELY(!castedThis)) 4785 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalStringIsUndefined");4790 return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringIsUndefined"); 4786 4791 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4787 4792 auto& impl = castedThis->wrapped(); … … 4798 4803 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4799 4804 if (UNLIKELY(!castedThis)) 4800 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalAtomicStringIsNull");4805 return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicStringIsNull"); 4801 4806 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4802 4807 auto& impl = castedThis->wrapped(); … … 4813 4818 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4814 4819 if (UNLIKELY(!castedThis)) 4815 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalStringIsEmptyString");4820 return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringIsEmptyString"); 4816 4821 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4817 4822 auto& impl = castedThis->wrapped(); … … 4828 4833 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4829 4834 if (UNLIKELY(!castedThis)) 4830 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalAtomicStringIsEmptyString");4835 return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicStringIsEmptyString"); 4831 4836 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4832 4837 auto& impl = castedThis->wrapped(); … … 4843 4848 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4844 4849 if (UNLIKELY(!castedThis)) 4845 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalDoubleIsNaN");4850 return throwThisTypeError(*state, "TestObject", "methodWithOptionalDoubleIsNaN"); 4846 4851 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4847 4852 auto& impl = castedThis->wrapped(); … … 4858 4863 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4859 4864 if (UNLIKELY(!castedThis)) 4860 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalFloatIsNaN");4865 return throwThisTypeError(*state, "TestObject", "methodWithOptionalFloatIsNaN"); 4861 4866 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4862 4867 auto& impl = castedThis->wrapped(); … … 4873 4878 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4874 4879 if (UNLIKELY(!castedThis)) 4875 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalSequence");4880 return throwThisTypeError(*state, "TestObject", "methodWithOptionalSequence"); 4876 4881 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4877 4882 auto& impl = castedThis->wrapped(); … … 4888 4893 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4889 4894 if (UNLIKELY(!castedThis)) 4890 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalLongLong");4895 return throwThisTypeError(*state, "TestObject", "methodWithOptionalLongLong"); 4891 4896 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4892 4897 auto& impl = castedThis->wrapped(); … … 4903 4908 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4904 4909 if (UNLIKELY(!castedThis)) 4905 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalLongLongIsZero");4910 return throwThisTypeError(*state, "TestObject", "methodWithOptionalLongLongIsZero"); 4906 4911 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4907 4912 auto& impl = castedThis->wrapped(); … … 4918 4923 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4919 4924 if (UNLIKELY(!castedThis)) 4920 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalUnsignedLongLong");4925 return throwThisTypeError(*state, "TestObject", "methodWithOptionalUnsignedLongLong"); 4921 4926 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4922 4927 auto& impl = castedThis->wrapped(); … … 4933 4938 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4934 4939 if (UNLIKELY(!castedThis)) 4935 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalUnsignedLongLongIsZero");4940 return throwThisTypeError(*state, "TestObject", "methodWithOptionalUnsignedLongLongIsZero"); 4936 4941 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4937 4942 auto& impl = castedThis->wrapped(); … … 4948 4953 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4949 4954 if (UNLIKELY(!castedThis)) 4950 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalArray");4955 return throwThisTypeError(*state, "TestObject", "methodWithOptionalArray"); 4951 4956 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4952 4957 auto& impl = castedThis->wrapped(); … … 4963 4968 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4964 4969 if (UNLIKELY(!castedThis)) 4965 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalArrayIsEmpty");4970 return throwThisTypeError(*state, "TestObject", "methodWithOptionalArrayIsEmpty"); 4966 4971 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4967 4972 auto& impl = castedThis->wrapped(); … … 4978 4983 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4979 4984 if (UNLIKELY(!castedThis)) 4980 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalBoolean");4985 return throwThisTypeError(*state, "TestObject", "methodWithOptionalBoolean"); 4981 4986 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4982 4987 auto& impl = castedThis->wrapped(); … … 4993 4998 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4994 4999 if (UNLIKELY(!castedThis)) 4995 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalBooleanIsFalse");5000 return throwThisTypeError(*state, "TestObject", "methodWithOptionalBooleanIsFalse"); 4996 5001 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 4997 5002 auto& impl = castedThis->wrapped(); … … 5008 5013 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5009 5014 if (UNLIKELY(!castedThis)) 5010 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalAny");5015 return throwThisTypeError(*state, "TestObject", "methodWithOptionalAny"); 5011 5016 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5012 5017 auto& impl = castedThis->wrapped(); … … 5021 5026 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5022 5027 if (UNLIKELY(!castedThis)) 5023 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalNullableWrapper");5028 return throwThisTypeError(*state, "TestObject", "methodWithOptionalNullableWrapper"); 5024 5029 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5025 5030 auto& impl = castedThis->wrapped(); … … 5034 5039 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5035 5040 if (UNLIKELY(!castedThis)) 5036 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalNullableWrapperIsNull");5041 return throwThisTypeError(*state, "TestObject", "methodWithOptionalNullableWrapperIsNull"); 5037 5042 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5038 5043 auto& impl = castedThis->wrapped(); … … 5047 5052 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5048 5053 if (UNLIKELY(!castedThis)) 5049 return throwThisTypeError(*state, "TestObj ", "methodWithOptionalXPathNSResolver");5054 return throwThisTypeError(*state, "TestObject", "methodWithOptionalXPathNSResolver"); 5050 5055 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5051 5056 auto& impl = castedThis->wrapped(); … … 5062 5067 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5063 5068 if (UNLIKELY(!castedThis)) 5064 return throwThisTypeError(*state, "TestObj ", "methodWithCallbackArg");5069 return throwThisTypeError(*state, "TestObject", "methodWithCallbackArg"); 5065 5070 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5066 5071 auto& impl = castedThis->wrapped(); … … 5068 5073 return throwVMError(state, createNotEnoughArgumentsError(state)); 5069 5074 if (UNLIKELY(!state->argument(0).isObject())) 5070 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj ", "methodWithCallbackArg");5075 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackArg"); 5071 5076 auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject()); 5072 5077 impl.methodWithCallbackArg(WTFMove(callback)); … … 5079 5084 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5080 5085 if (UNLIKELY(!castedThis)) 5081 return throwThisTypeError(*state, "TestObj ", "methodWithNonCallbackArgAndCallbackArg");5086 return throwThisTypeError(*state, "TestObject", "methodWithNonCallbackArgAndCallbackArg"); 5082 5087 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5083 5088 auto& impl = castedThis->wrapped(); … … 5088 5093 return JSValue::encode(jsUndefined()); 5089 5094 if (UNLIKELY(!state->argument(1).isObject())) 5090 return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObj ", "methodWithNonCallbackArgAndCallbackArg");5095 return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObject", "methodWithNonCallbackArgAndCallbackArg"); 5091 5096 auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject()); 5092 5097 impl.methodWithNonCallbackArgAndCallbackArg(WTFMove(nonCallback), WTFMove(callback)); … … 5099 5104 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5100 5105 if (UNLIKELY(!castedThis)) 5101 return throwThisTypeError(*state, "TestObj ", "methodWithCallbackAndOptionalArg");5106 return throwThisTypeError(*state, "TestObject", "methodWithCallbackAndOptionalArg"); 5102 5107 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5103 5108 auto& impl = castedThis->wrapped(); … … 5105 5110 if (!state->argument(0).isUndefinedOrNull()) { 5106 5111 if (!state->uncheckedArgument(0).isObject()) 5107 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj ", "methodWithCallbackAndOptionalArg");5112 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackAndOptionalArg"); 5108 5113 callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject()); 5109 5114 } … … 5117 5122 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5118 5123 if (UNLIKELY(!castedThis)) 5119 return throwThisTypeError(*state, "TestObj ", "methodWithCallbackFunctionArg");5124 return throwThisTypeError(*state, "TestObject", "methodWithCallbackFunctionArg"); 5120 5125 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5121 5126 auto& impl = castedThis->wrapped(); … … 5123 5128 return throwVMError(state, createNotEnoughArgumentsError(state)); 5124 5129 if (UNLIKELY(!state->argument(0).isFunction())) 5125 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj ", "methodWithCallbackFunctionArg");5130 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackFunctionArg"); 5126 5131 auto callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject()); 5127 5132 impl.methodWithCallbackFunctionArg(WTFMove(callback)); … … 5134 5139 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5135 5140 if (UNLIKELY(!castedThis)) 5136 return throwThisTypeError(*state, "TestObj ", "methodWithNonCallbackArgAndCallbackFunctionArg");5141 return throwThisTypeError(*state, "TestObject", "methodWithNonCallbackArgAndCallbackFunctionArg"); 5137 5142 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5138 5143 auto& impl = castedThis->wrapped(); … … 5143 5148 return JSValue::encode(jsUndefined()); 5144 5149 if (UNLIKELY(!state->argument(1).isFunction())) 5145 return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObj ", "methodWithNonCallbackArgAndCallbackFunctionArg");5150 return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObject", "methodWithNonCallbackArgAndCallbackFunctionArg"); 5146 5151 auto callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject()); 5147 5152 impl.methodWithNonCallbackArgAndCallbackFunctionArg(WTFMove(nonCallback), WTFMove(callback)); … … 5154 5159 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5155 5160 if (UNLIKELY(!castedThis)) 5156 return throwThisTypeError(*state, "TestObj ", "methodWithCallbackFunctionAndOptionalArg");5161 return throwThisTypeError(*state, "TestObject", "methodWithCallbackFunctionAndOptionalArg"); 5157 5162 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5158 5163 auto& impl = castedThis->wrapped(); … … 5160 5165 if (!state->argument(0).isUndefinedOrNull()) { 5161 5166 if (!state->uncheckedArgument(0).isFunction()) 5162 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj ", "methodWithCallbackFunctionAndOptionalArg");5167 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackFunctionAndOptionalArg"); 5163 5168 callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject()); 5164 5169 } … … 5172 5177 if (!state->argument(0).isUndefinedOrNull()) { 5173 5178 if (!state->uncheckedArgument(0).isObject()) 5174 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj ", "staticMethodWithCallbackAndOptionalArg");5179 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "staticMethodWithCallbackAndOptionalArg"); 5175 5180 callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0)); 5176 5181 } … … 5184 5189 return throwVMError(state, createNotEnoughArgumentsError(state)); 5185 5190 if (UNLIKELY(!state->argument(0).isObject())) 5186 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj ", "staticMethodWithCallbackArg");5191 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "staticMethodWithCallbackArg"); 5187 5192 auto callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0)); 5188 5193 TestObj::staticMethodWithCallbackArg(WTFMove(callback)); … … 5196 5201 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5197 5202 if (UNLIKELY(!castedThis)) 5198 return throwThisTypeError(*state, "TestObj ", "conditionalMethod1");5203 return throwThisTypeError(*state, "TestObject", "conditionalMethod1"); 5199 5204 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5200 5205 auto& impl = castedThis->wrapped(); … … 5211 5216 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5212 5217 if (UNLIKELY(!castedThis)) 5213 return throwThisTypeError(*state, "TestObj ", "conditionalMethod2");5218 return throwThisTypeError(*state, "TestObject", "conditionalMethod2"); 5214 5219 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5215 5220 auto& impl = castedThis->wrapped(); … … 5226 5231 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5227 5232 if (UNLIKELY(!castedThis)) 5228 return throwThisTypeError(*state, "TestObj ", "conditionalMethod3");5233 return throwThisTypeError(*state, "TestObject", "conditionalMethod3"); 5229 5234 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5230 5235 auto& impl = castedThis->wrapped(); … … 5240 5245 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5241 5246 if (UNLIKELY(!castedThis)) 5242 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5247 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5243 5248 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5244 5249 auto& impl = castedThis->wrapped(); … … 5258 5263 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5259 5264 if (UNLIKELY(!castedThis)) 5260 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5265 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5261 5266 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5262 5267 auto& impl = castedThis->wrapped(); … … 5276 5281 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5277 5282 if (UNLIKELY(!castedThis)) 5278 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5283 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5279 5284 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5280 5285 auto& impl = castedThis->wrapped(); … … 5293 5298 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5294 5299 if (UNLIKELY(!castedThis)) 5295 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5300 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5296 5301 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5297 5302 auto& impl = castedThis->wrapped(); … … 5310 5315 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5311 5316 if (UNLIKELY(!castedThis)) 5312 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5317 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5313 5318 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5314 5319 auto& impl = castedThis->wrapped(); … … 5316 5321 return throwVMError(state, createNotEnoughArgumentsError(state)); 5317 5322 if (UNLIKELY(!state->argument(0).isObject())) 5318 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj ", "overloadedMethod");5323 return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "overloadedMethod"); 5319 5324 auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject()); 5320 5325 impl.overloadedMethod(WTFMove(callback)); … … 5327 5332 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5328 5333 if (UNLIKELY(!castedThis)) 5329 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5334 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5330 5335 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5331 5336 auto& impl = castedThis->wrapped(); … … 5344 5349 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5345 5350 if (UNLIKELY(!castedThis)) 5346 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5351 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5347 5352 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5348 5353 auto& impl = castedThis->wrapped(); … … 5361 5366 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5362 5367 if (UNLIKELY(!castedThis)) 5363 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5368 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5364 5369 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5365 5370 auto& impl = castedThis->wrapped(); … … 5368 5373 auto objArg = JSTestObj::toWrapped(state->argument(0)); 5369 5374 if (UNLIKELY(!objArg)) 5370 return throwArgumentTypeError(*state, 0, "objArg", "TestObj ", "overloadedMethod", "TestObj");5375 return throwArgumentTypeError(*state, 0, "objArg", "TestObject", "overloadedMethod", "TestObj"); 5371 5376 impl.overloadedMethod(*objArg); 5372 5377 return JSValue::encode(jsUndefined()); … … 5378 5383 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5379 5384 if (UNLIKELY(!castedThis)) 5380 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5385 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5381 5386 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5382 5387 auto& impl = castedThis->wrapped(); … … 5395 5400 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5396 5401 if (UNLIKELY(!castedThis)) 5397 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5402 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5398 5403 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5399 5404 auto& impl = castedThis->wrapped(); … … 5412 5417 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5413 5418 if (UNLIKELY(!castedThis)) 5414 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5419 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5415 5420 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5416 5421 auto& impl = castedThis->wrapped(); … … 5429 5434 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5430 5435 if (UNLIKELY(!castedThis)) 5431 return throwThisTypeError(*state, "TestObj ", "overloadedMethod");5436 return throwThisTypeError(*state, "TestObject", "overloadedMethod"); 5432 5437 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5433 5438 auto& impl = castedThis->wrapped(); … … 5438 5443 auto* item = JSBlob::toWrapped(state->uncheckedArgument(i)); 5439 5444 if (!item) 5440 return throwArgumentTypeError(*state, i, "blobArgs", "TestObj ", "overloadedMethod", "Blob");5445 return throwArgumentTypeError(*state, i, "blobArgs", "TestObject", "overloadedMethod", "Blob"); 5441 5446 blobArgs.uncheckedAppend(item); 5442 5447 } … … 5484 5489 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5485 5490 if (UNLIKELY(!castedThis)) 5486 return throwThisTypeError(*state, "TestObj ", "overloadedMethodWithOptionalParameter");5491 return throwThisTypeError(*state, "TestObject", "overloadedMethodWithOptionalParameter"); 5487 5492 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5488 5493 auto& impl = castedThis->wrapped(); … … 5500 5505 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5501 5506 if (UNLIKELY(!castedThis)) 5502 return throwThisTypeError(*state, "TestObj ", "overloadedMethodWithOptionalParameter");5507 return throwThisTypeError(*state, "TestObject", "overloadedMethodWithOptionalParameter"); 5503 5508 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5504 5509 auto& impl = castedThis->wrapped(); … … 5601 5606 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5602 5607 if (UNLIKELY(!castedThis)) 5603 return throwThisTypeError(*state, "TestObj ", "classMethodWithClamp");5608 return throwThisTypeError(*state, "TestObject", "classMethodWithClamp"); 5604 5609 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5605 5610 auto& impl = castedThis->wrapped(); … … 5621 5626 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5622 5627 if (UNLIKELY(!castedThis)) 5623 return throwThisTypeError(*state, "TestObj ", "classMethodWithEnforceRange");5628 return throwThisTypeError(*state, "TestObject", "classMethodWithEnforceRange"); 5624 5629 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5625 5630 auto& impl = castedThis->wrapped(); … … 5641 5646 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5642 5647 if (UNLIKELY(!castedThis)) 5643 return throwThisTypeError(*state, "TestObj ", "methodWithUnsignedLongSequence");5648 return throwThisTypeError(*state, "TestObject", "methodWithUnsignedLongSequence"); 5644 5649 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5645 5650 auto& impl = castedThis->wrapped(); … … 5658 5663 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5659 5664 if (UNLIKELY(!castedThis)) 5660 return throwThisTypeError(*state, "TestObj ", "stringArrayFunction");5665 return throwThisTypeError(*state, "TestObject", "stringArrayFunction"); 5661 5666 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5662 5667 auto& impl = castedThis->wrapped(); … … 5678 5683 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5679 5684 if (UNLIKELY(!castedThis)) 5680 return throwThisTypeError(*state, "TestObj ", "domStringListFunction");5685 return throwThisTypeError(*state, "TestObject", "domStringListFunction"); 5681 5686 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5682 5687 auto& impl = castedThis->wrapped(); … … 5688 5693 return JSValue::encode(jsUndefined()); 5689 5694 if (UNLIKELY(!values)) 5690 return throwArgumentTypeError(*state, 0, "values", "TestObj ", "domStringListFunction", "DOMStringList");5695 return throwArgumentTypeError(*state, 0, "values", "TestObject", "domStringListFunction", "DOMStringList"); 5691 5696 JSValue result = toJS(state, castedThis->globalObject(), impl.domStringListFunction(*values, ec)); 5692 5697 … … 5700 5705 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5701 5706 if (UNLIKELY(!castedThis)) 5702 return throwThisTypeError(*state, "TestObj ", "methodWithAndWithoutNullableSequence");5707 return throwThisTypeError(*state, "TestObject", "methodWithAndWithoutNullableSequence"); 5703 5708 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5704 5709 auto& impl = castedThis->wrapped(); … … 5720 5725 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5721 5726 if (UNLIKELY(!castedThis)) 5722 return throwThisTypeError(*state, "TestObj ", "methodWithAndWithoutNullableSequence2");5727 return throwThisTypeError(*state, "TestObject", "methodWithAndWithoutNullableSequence2"); 5723 5728 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5724 5729 auto& impl = castedThis->wrapped(); … … 5740 5745 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5741 5746 if (UNLIKELY(!castedThis)) 5742 return throwThisTypeError(*state, "TestObj ", "getElementById");5747 return throwThisTypeError(*state, "TestObject", "getElementById"); 5743 5748 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5744 5749 auto& impl = castedThis->wrapped(); … … 5757 5762 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5758 5763 if (UNLIKELY(!castedThis)) 5759 return throwThisTypeError(*state, "TestObj ", "getSVGDocument");5764 return throwThisTypeError(*state, "TestObject", "getSVGDocument"); 5760 5765 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5761 5766 auto& impl = castedThis->wrapped(); … … 5774 5779 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5775 5780 if (UNLIKELY(!castedThis)) 5776 return throwThisTypeError(*state, "TestObj ", "convert1");5781 return throwThisTypeError(*state, "TestObject", "convert1"); 5777 5782 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5778 5783 auto& impl = castedThis->wrapped(); … … 5781 5786 auto value = JSTestNode::toWrapped(state->argument(0)); 5782 5787 if (UNLIKELY(!value)) 5783 return throwArgumentTypeError(*state, 0, "value", "TestObj ", "convert1", "TestNode");5788 return throwArgumentTypeError(*state, 0, "value", "TestObject", "convert1", "TestNode"); 5784 5789 impl.convert1(*value); 5785 5790 return JSValue::encode(jsUndefined()); … … 5791 5796 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5792 5797 if (UNLIKELY(!castedThis)) 5793 return throwThisTypeError(*state, "TestObj ", "convert2");5798 return throwThisTypeError(*state, "TestObject", "convert2"); 5794 5799 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5795 5800 auto& impl = castedThis->wrapped(); … … 5806 5811 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5807 5812 if (UNLIKELY(!castedThis)) 5808 return throwThisTypeError(*state, "TestObj ", "convert3");5813 return throwThisTypeError(*state, "TestObject", "convert3"); 5809 5814 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5810 5815 auto& impl = castedThis->wrapped(); … … 5823 5828 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5824 5829 if (UNLIKELY(!castedThis)) 5825 return throwThisTypeError(*state, "TestObj ", "convert4");5830 return throwThisTypeError(*state, "TestObject", "convert4"); 5826 5831 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5827 5832 auto& impl = castedThis->wrapped(); … … 5840 5845 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5841 5846 if (UNLIKELY(!castedThis)) 5842 return throwThisTypeError(*state, "TestObj ", "mutablePointFunction");5847 return throwThisTypeError(*state, "TestObject", "mutablePointFunction"); 5843 5848 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5844 5849 auto& impl = castedThis->wrapped(); … … 5852 5857 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5853 5858 if (UNLIKELY(!castedThis)) 5854 return throwThisTypeError(*state, "TestObj ", "immutablePointFunction");5859 return throwThisTypeError(*state, "TestObject", "immutablePointFunction"); 5855 5860 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5856 5861 auto& impl = castedThis->wrapped(); … … 5864 5869 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5865 5870 if (UNLIKELY(!castedThis)) 5866 return throwThisTypeError(*state, "TestObj ", "orange");5871 return throwThisTypeError(*state, "TestObject", "orange"); 5867 5872 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5868 5873 auto& impl = castedThis->wrapped(); … … 5876 5881 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5877 5882 if (UNLIKELY(!castedThis)) 5878 return throwThisTypeError(*state, "TestObj ", "strictFunction");5883 return throwThisTypeError(*state, "TestObject", "strictFunction"); 5879 5884 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5880 5885 auto& impl = castedThis->wrapped(); … … 5902 5907 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5903 5908 if (UNLIKELY(!castedThis)) 5904 return throwThisTypeError(*state, "TestObj ", "strictFunctionWithSequence");5909 return throwThisTypeError(*state, "TestObject", "strictFunctionWithSequence"); 5905 5910 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5906 5911 auto& impl = castedThis->wrapped(); … … 5912 5917 objArg = JSTestObj::toWrapped(state->uncheckedArgument(0)); 5913 5918 if (UNLIKELY(!objArg)) 5914 return throwArgumentTypeError(*state, 0, "objArg", "TestObj ", "strictFunctionWithSequence", "TestObj");5919 return throwArgumentTypeError(*state, 0, "objArg", "TestObject", "strictFunctionWithSequence", "TestObj"); 5915 5920 } 5916 5921 auto a = toNativeArray<uint32_t>(*state, state->argument(1)); … … 5928 5933 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5929 5934 if (UNLIKELY(!castedThis)) 5930 return throwThisTypeError(*state, "TestObj ", "strictFunctionWithArray");5935 return throwThisTypeError(*state, "TestObject", "strictFunctionWithArray"); 5931 5936 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5932 5937 auto& impl = castedThis->wrapped(); … … 5936 5941 auto objArg = JSTestObj::toWrapped(state->argument(0)); 5937 5942 if (UNLIKELY(!objArg)) 5938 return throwArgumentTypeError(*state, 0, "objArg", "TestObj ", "strictFunctionWithArray", "TestObj");5943 return throwArgumentTypeError(*state, 0, "objArg", "TestObject", "strictFunctionWithArray", "TestObj"); 5939 5944 auto array = toNativeArray<int32_t>(*state, state->argument(1)); 5940 5945 if (UNLIKELY(state->hadException())) … … 5951 5956 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5952 5957 if (UNLIKELY(!castedThis)) 5953 return throwThisTypeError(*state, "TestObj ", "variadicStringMethod");5958 return throwThisTypeError(*state, "TestObject", "variadicStringMethod"); 5954 5959 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5955 5960 auto& impl = castedThis->wrapped(); … … 5971 5976 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5972 5977 if (UNLIKELY(!castedThis)) 5973 return throwThisTypeError(*state, "TestObj ", "variadicDoubleMethod");5978 return throwThisTypeError(*state, "TestObject", "variadicDoubleMethod"); 5974 5979 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5975 5980 auto& impl = castedThis->wrapped(); … … 5991 5996 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 5992 5997 if (UNLIKELY(!castedThis)) 5993 return throwThisTypeError(*state, "TestObj ", "variadicNodeMethod");5998 return throwThisTypeError(*state, "TestObject", "variadicNodeMethod"); 5994 5999 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 5995 6000 auto& impl = castedThis->wrapped(); … … 5998 6003 auto head = JSNode::toWrapped(state->argument(0)); 5999 6004 if (UNLIKELY(!head)) 6000 return throwArgumentTypeError(*state, 0, "head", "TestObj ", "variadicNodeMethod", "Node");6005 return throwArgumentTypeError(*state, 0, "head", "TestObject", "variadicNodeMethod", "Node"); 6001 6006 Vector<Node*> tail; 6002 6007 ASSERT(1 <= state->argumentCount()); … … 6005 6010 auto* item = JSNode::toWrapped(state->uncheckedArgument(i)); 6006 6011 if (!item) 6007 return throwArgumentTypeError(*state, i, "tail", "TestObj ", "variadicNodeMethod", "Node");6012 return throwArgumentTypeError(*state, i, "tail", "TestObject", "variadicNodeMethod", "Node"); 6008 6013 tail.uncheckedAppend(item); 6009 6014 } … … 6017 6022 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 6018 6023 if (UNLIKELY(!castedThis)) 6019 return throwThisTypeError(*state, "TestObj ", "any");6024 return throwThisTypeError(*state, "TestObject", "any"); 6020 6025 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 6021 6026 auto& impl = castedThis->wrapped(); … … 6043 6048 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 6044 6049 if (UNLIKELY(!castedThis)) 6045 return throwThisTypeError(*state, "TestObj ", "testPromiseFunction");6050 return throwThisTypeError(*state, "TestObject", "testPromiseFunction"); 6046 6051 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 6047 6052 auto& impl = castedThis->wrapped(); … … 6061 6066 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 6062 6067 if (UNLIKELY(!castedThis)) 6063 return throwThisTypeError(*state, "TestObj ", "testPromiseFunctionWithFloatArgument");6068 return throwThisTypeError(*state, "TestObject", "testPromiseFunctionWithFloatArgument"); 6064 6069 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 6065 6070 auto& impl = castedThis->wrapped(); … … 6084 6089 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 6085 6090 if (UNLIKELY(!castedThis)) 6086 return throwThisTypeError(*state, "TestObj ", "testPromiseFunctionWithException");6091 return throwThisTypeError(*state, "TestObject", "testPromiseFunctionWithException"); 6087 6092 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 6088 6093 auto& impl = castedThis->wrapped(); … … 6104 6109 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 6105 6110 if (UNLIKELY(!castedThis)) 6106 return throwThisTypeError(*state, "TestObj ", "testPromiseFunctionWithOptionalIntArgument");6111 return throwThisTypeError(*state, "TestObject", "testPromiseFunctionWithOptionalIntArgument"); 6107 6112 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 6108 6113 auto& impl = castedThis->wrapped(); … … 6125 6130 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 6126 6131 if (UNLIKELY(!castedThis)) 6127 return throwThisTypeError(*state, "TestObj ", "testPromiseOverloadedFunction");6132 return throwThisTypeError(*state, "TestObject", "testPromiseOverloadedFunction"); 6128 6133 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 6129 6134 auto& impl = castedThis->wrapped(); … … 6148 6153 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 6149 6154 if (UNLIKELY(!castedThis)) 6150 return throwThisTypeError(*state, "TestObj ", "testPromiseOverloadedFunction");6155 return throwThisTypeError(*state, "TestObject", "testPromiseOverloadedFunction"); 6151 6156 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 6152 6157 auto& impl = castedThis->wrapped(); … … 6155 6160 auto request = JSFetchRequest::toWrapped(state->argument(0)); 6156 6161 if (UNLIKELY(!request)) 6157 return throwArgumentTypeError(*state, 0, "request", "TestObj ", "testPromiseOverloadedFunction", "FetchRequest");6162 return throwArgumentTypeError(*state, 0, "request", "TestObject", "testPromiseOverloadedFunction", "FetchRequest"); 6158 6163 impl.testPromiseOverloadedFunction(*request, DeferredWrapper(state, castedThis->globalObject(), promiseDeferred)); 6159 6164 return JSValue::encode(jsUndefined()); … … 6207 6212 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 6208 6213 if (UNLIKELY(!castedThis)) 6209 return throwThisTypeError(*state, "TestObj ", "methodWithNeedsLifecycleProcessingStack");6214 return throwThisTypeError(*state, "TestObject", "methodWithNeedsLifecycleProcessingStack"); 6210 6215 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 6211 6216 auto& impl = castedThis->wrapped(); … … 6219 6224 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue); 6220 6225 if (UNLIKELY(!castedThis)) 6221 return throwThisTypeError(*state, "TestObj ", "attachShadowRoot");6226 return throwThisTypeError(*state, "TestObject", "attachShadowRoot"); 6222 6227 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); 6223 6228 auto& impl = castedThis->wrapped(); -
trunk/Source/WebCore/bindings/scripts/test/TestObj.idl
r203222 r203858 45 45 46 46 [ 47 ConstructorCallWith=Document, 47 48 Constructor(TestCallback testCallback, TestCallbackFunction testCallbackFunction), 48 49 InterfaceName=TestObject
Note: See TracChangeset
for help on using the changeset viewer.