diff options
Diffstat (limited to 'WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp')
-rw-r--r-- | WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp b/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp index dc2f7cb..6143c1e 100644 --- a/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp +++ b/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp @@ -76,7 +76,7 @@ JSValue JSHTMLOptionsCollection::add(ExecState* exec) imp->add(option, ec); else { bool ok; - int index = exec->argument(1).toInt32(exec, ok); + int index = finiteInt32Value(exec->argument(1), exec, ok); if (exec->hadException()) return jsUndefined(); if (!ok) |