⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 98688 in webkit


Ignore:
Timestamp:
Oct 27, 2011, 9:58:21 PM (15 years ago)
Author:
rniwa@webkit.org
Message:

binding test rebaseline after r98679.

  • bindings/scripts/test/JS/JSTestInterface.cpp:

(WebCore::JSTestInterfaceConstructor::constructJSTestInterface):

  • bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:

(WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):

  • bindings/scripts/test/JS/JSTestObj.cpp:

(WebCore::setJSTestObjStringAttr):
(WebCore::setJSTestObjStringAttrWithGetterException):
(WebCore::setJSTestObjStringAttrWithSetterException):
(WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
(WebCore::jsTestObjPrototypeFunctionSerializedValue):
(WebCore::jsTestObjPrototypeFunctionIdbKey):
(WebCore::jsTestObjPrototypeFunctionOptionsObject):
(WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
(WebCore::jsTestObjPrototypeFunctionClassMethodWithOptional):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r98686 r98688  
     12011-10-27  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        binding test rebaseline after r98679.
     4
     5        * bindings/scripts/test/JS/JSTestInterface.cpp:
     6        (WebCore::JSTestInterfaceConstructor::constructJSTestInterface):
     7        * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
     8        (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
     9        * bindings/scripts/test/JS/JSTestObj.cpp:
     10        (WebCore::setJSTestObjStringAttr):
     11        (WebCore::setJSTestObjStringAttrWithGetterException):
     12        (WebCore::setJSTestObjStringAttrWithSetterException):
     13        (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
     14        (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
     15        (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
     16        (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
     17        (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
     18        (WebCore::jsTestObjPrototypeFunctionSerializedValue):
     19        (WebCore::jsTestObjPrototypeFunctionIdbKey):
     20        (WebCore::jsTestObjPrototypeFunctionOptionsObject):
     21        (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
     22        (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
     23        (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
     24        (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
     25        (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
     26        (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
     27        (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
     28        (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
     29        (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
     30        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
     31        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
     32        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
     33        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
     34        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
     35        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
     36        (WebCore::jsTestObjPrototypeFunctionClassMethodWithOptional):
     37
    1382011-10-27  Adam Barth  <abarth@webkit.org>
    239
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp

    r98552 r98688  
    106106        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    107107    ExceptionCode ec = 0;
    108     const String& str1(ustringToString(exec->argument(0).toString(exec)));
     108    const String& str1(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)));
    109109    if (exec->hadException())
    110110        return JSValue::encode(jsUndefined());
    111     const String& str2(ustringToString(exec->argument(1).toString(exec)));
     111    const String& str2(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)));
    112112    if (exec->hadException())
    113113        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp

    r98552 r98688  
    187187    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestMediaQueryListListener::s_info);
    188188    TestMediaQueryListListener* imp = static_cast<TestMediaQueryListListener*>(castedThis->impl());
    189     RefPtr<MediaQueryListListener> listener(MediaQueryListListener::create(ScriptValue(exec->globalData(), exec->argument(0))));
     189    RefPtr<MediaQueryListListener> listener(MediaQueryListListener::create(ScriptValue(exec->globalData(), MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined))));
    190190    if (exec->hadException())
    191191        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp

    r98617 r98688  
    791791    JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
    792792    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    793     imp->setStringAttr(ustringToString(value.toString(exec)));
     793    imp->setStringAttr(ustringToString(value.isEmpty() ? UString() : value.toString(exec)));
    794794}
    795795
     
    932932    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    933933    ExceptionCode ec = 0;
    934     imp->setStringAttrWithGetterException(ustringToString(value.toString(exec)), ec);
     934    imp->setStringAttrWithGetterException(ustringToString(value.isEmpty() ? UString() : value.toString(exec)), ec);
    935935    setDOMException(exec, ec);
    936936}
     
    942942    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    943943    ExceptionCode ec = 0;
    944     imp->setStringAttrWithSetterException(ustringToString(value.toString(exec)), ec);
     944    imp->setStringAttrWithSetterException(ustringToString(value.isEmpty() ? UString() : value.toString(exec)), ec);
    945945    setDOMException(exec, ec);
    946946}
     
    10431043    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    10441044    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1045     int intArg(exec->argument(0).toInt32(exec));
    1046     if (exec->hadException())
    1047         return JSValue::encode(jsUndefined());
    1048     const String& strArg(ustringToString(exec->argument(1).toString(exec)));
    1049     if (exec->hadException())
    1050         return JSValue::encode(jsUndefined());
    1051     TestObj* objArg(toTestObj(exec->argument(2)));
     1045    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
     1046    if (exec->hadException())
     1047        return JSValue::encode(jsUndefined());
     1048    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)));
     1049    if (exec->hadException())
     1050        return JSValue::encode(jsUndefined());
     1051    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefined)));
    10521052    if (exec->hadException())
    10531053        return JSValue::encode(jsUndefined());
     
    10771077    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    10781078    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1079     int intArg(exec->argument(0).toInt32(exec));
    1080     if (exec->hadException())
    1081         return JSValue::encode(jsUndefined());
    1082     const String& strArg(ustringToString(exec->argument(1).toString(exec)));
    1083     if (exec->hadException())
    1084         return JSValue::encode(jsUndefined());
    1085     TestObj* objArg(toTestObj(exec->argument(2)));
     1079    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
     1080    if (exec->hadException())
     1081        return JSValue::encode(jsUndefined());
     1082    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)));
     1083    if (exec->hadException())
     1084        return JSValue::encode(jsUndefined());
     1085    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefined)));
    10861086    if (exec->hadException())
    10871087        return JSValue::encode(jsUndefined());
     
    11121112    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    11131113    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1114     int intArg(exec->argument(0).toInt32(exec));
    1115     if (exec->hadException())
    1116         return JSValue::encode(jsUndefined());
    1117     const String& strArg(ustringToString(exec->argument(1).toString(exec)));
    1118     if (exec->hadException())
    1119         return JSValue::encode(jsUndefined());
    1120     TestObj* objArg(toTestObj(exec->argument(2)));
     1114    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
     1115    if (exec->hadException())
     1116        return JSValue::encode(jsUndefined());
     1117    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)));
     1118    if (exec->hadException())
     1119        return JSValue::encode(jsUndefined());
     1120    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefined)));
    11211121    if (exec->hadException())
    11221122        return JSValue::encode(jsUndefined());
     
    11361136    if (exec->argumentCount() < 2)
    11371137        return JSValue::encode(jsUndefined());
    1138     const String& strArg(ustringToString(exec->argument(0).toString(exec)));
    1139     if (exec->hadException())
    1140         return JSValue::encode(jsUndefined());
    1141     TestObj* objArg(toTestObj(exec->argument(1)));
     1138    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)));
     1139    if (exec->hadException())
     1140        return JSValue::encode(jsUndefined());
     1141    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined)));
    11421142    if (exec->hadException())
    11431143        return JSValue::encode(jsUndefined());
     
    11581158        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    11591159    ExceptionCode ec = 0;
    1160     const String& strArg(ustringToString(exec->argument(0).toString(exec)));
    1161     if (exec->hadException())
    1162         return JSValue::encode(jsUndefined());
    1163     TestObj* objArg(toTestObj(exec->argument(1)));
     1160    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)));
     1161    if (exec->hadException())
     1162        return JSValue::encode(jsUndefined());
     1163    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined)));
    11641164    if (exec->hadException())
    11651165        return JSValue::encode(jsUndefined());
     
    11781178    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    11791179    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1180     RefPtr<SerializedScriptValue> serializedArg(SerializedScriptValue::create(exec, exec->argument(0)));
     1180    RefPtr<SerializedScriptValue> serializedArg(SerializedScriptValue::create(exec, MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    11811181    if (exec->hadException())
    11821182        return JSValue::encode(jsUndefined());
     
    11931193    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    11941194    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1195     RefPtr<IDBKey> key(createIDBKeyFromValue(exec, exec->argument(0)));
     1195    RefPtr<IDBKey> key(createIDBKeyFromValue(exec, MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    11961196    if (exec->hadException())
    11971197        return JSValue::encode(jsUndefined());
     
    12081208    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    12091209    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1210     OptionsObject* oo(toOptionsObject(exec->argument(0)));
     1210    OptionsObject* oo(toOptionsObject(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    12111211    if (exec->hadException())
    12121212        return JSValue::encode(jsUndefined());
     
    12181218    }
    12191219
    1220     OptionsObject* ooo(toOptionsObject(exec->argument(1)));
     1220    OptionsObject* ooo(toOptionsObject(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined)));
    12211221    if (exec->hadException())
    12221222        return JSValue::encode(jsUndefined());
     
    12711271    size_t maxStackSize = imp->shouldCaptureFullStackTrace() ? ScriptCallStack::maxCallStackSizeToCapture : 1;
    12721272    RefPtr<ScriptCallStack> callStack(createScriptCallStack(exec, maxStackSize));
    1273     log* intArg(tolog(exec->argument(0)));
     1273    log* intArg(tolog(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    12741274    if (exec->hadException())
    12751275        return JSValue::encode(jsUndefined());
     
    13351335    if (!dynamicFrame)
    13361336        return JSValue::encode(jsUndefined());
    1337     int intArg(exec->argument(0).toInt32(exec));
     1337    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    13381338    if (exec->hadException())
    13391339        return JSValue::encode(jsUndefined());
     
    13531353    if (!dynamicFrame)
    13541354        return JSValue::encode(jsUndefined());
    1355     int intArg(exec->argument(0).toInt32(exec));
     1355    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    13561356    if (exec->hadException())
    13571357        return JSValue::encode(jsUndefined());
     
    13631363    }
    13641364
    1365     int optionalArg(exec->argument(1).toInt32(exec));
     1365    int optionalArg(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toInt32(exec));
    13661366    if (exec->hadException())
    13671367        return JSValue::encode(jsUndefined());
     
    13811381    if (!dynamicFrame)
    13821382        return JSValue::encode(jsUndefined());
    1383     int intArg(exec->argument(0).toInt32(exec));
     1383    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    13841384    if (exec->hadException())
    13851385        return JSValue::encode(jsUndefined());
     
    13991399    if (!dynamicFrame)
    14001400        return JSValue::encode(jsUndefined());
    1401     int intArg(exec->argument(0).toInt32(exec));
     1401    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    14021402    if (exec->hadException())
    14031403        return JSValue::encode(jsUndefined());
     
    14091409    }
    14101410
    1411     int optionalArg(exec->argument(1).toInt32(exec));
     1411    int optionalArg(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toInt32(exec));
    14121412    if (exec->hadException())
    14131413        return JSValue::encode(jsUndefined());
     
    15041504    }
    15051505
    1506     int opt(exec->argument(0).toInt32(exec));
     1506    int opt(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    15071507    if (exec->hadException())
    15081508        return JSValue::encode(jsUndefined());
     
    15191519    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    15201520    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1521     int nonOpt(exec->argument(0).toInt32(exec));
     1521    int nonOpt(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    15221522    if (exec->hadException())
    15231523        return JSValue::encode(jsUndefined());
     
    15291529    }
    15301530
    1531     int opt(exec->argument(1).toInt32(exec));
     1531    int opt(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toInt32(exec));
    15321532    if (exec->hadException())
    15331533        return JSValue::encode(jsUndefined());
     
    15441544    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    15451545    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1546     int nonOpt(exec->argument(0).toInt32(exec));
     1546    int nonOpt(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    15471547    if (exec->hadException())
    15481548        return JSValue::encode(jsUndefined());
     
    15541554    }
    15551555
    1556     int opt1(exec->argument(1).toInt32(exec));
     1556    int opt1(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toInt32(exec));
    15571557    if (exec->hadException())
    15581558        return JSValue::encode(jsUndefined());
     
    15621562    }
    15631563
    1564     int opt2(exec->argument(2).toInt32(exec));
     1564    int opt2(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefined).toInt32(exec));
    15651565    if (exec->hadException())
    15661566        return JSValue::encode(jsUndefined());
     
    15941594    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    15951595    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1596     int nonCallback(exec->argument(0).toInt32(exec));
     1596    int nonCallback(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    15971597    if (exec->hadException())
    15981598        return JSValue::encode(jsUndefined());
     
    16801680    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    16811681    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1682     TestObj* objArg(toTestObj(exec->argument(0)));
    1683     if (exec->hadException())
    1684         return JSValue::encode(jsUndefined());
    1685     const String& strArg(ustringToString(exec->argument(1).toString(exec)));
     1682    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
     1683    if (exec->hadException())
     1684        return JSValue::encode(jsUndefined());
     1685    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)));
    16861686    if (exec->hadException())
    16871687        return JSValue::encode(jsUndefined());
     
    16981698    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    16991699    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1700     TestObj* objArg(toTestObj(exec->argument(0)));
     1700    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    17011701    if (exec->hadException())
    17021702        return JSValue::encode(jsUndefined());
     
    17081708    }
    17091709
    1710     int intArg(exec->argument(1).toInt32(exec));
     1710    int intArg(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toInt32(exec));
    17111711    if (exec->hadException())
    17121712        return JSValue::encode(jsUndefined());
     
    17231723    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    17241724    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1725     const String& strArg(ustringToString(exec->argument(0).toString(exec)));
     1725    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)));
    17261726    if (exec->hadException())
    17271727        return JSValue::encode(jsUndefined());
     
    17381738    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    17391739    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1740     int intArg(exec->argument(0).toInt32(exec));
     1740    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    17411741    if (exec->hadException())
    17421742        return JSValue::encode(jsUndefined());
     
    17701770    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    17711771    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1772     DOMStringList* listArg(toDOMStringList(exec->argument(0)));
     1772    DOMStringList* listArg(toDOMStringList(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    17731773    if (exec->hadException())
    17741774        return JSValue::encode(jsUndefined());
     
    17851785    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    17861786    TestObj* imp = static_cast<TestObj*>(castedThis->impl());
    1787     DOMStringList* arrayArg(toDOMStringList(exec->argument(0)));
     1787    DOMStringList* arrayArg(toDOMStringList(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    17881788    if (exec->hadException())
    17891789        return JSValue::encode(jsUndefined());
     
    18421842    }
    18431843
    1844     int arg(exec->argument(0).toInt32(exec));
     1844    int arg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    18451845    if (exec->hadException())
    18461846        return JSValue::encode(jsUndefined());
Note: See TracChangeset for help on using the changeset viewer.