diff options
Diffstat (limited to 'WebCore/bindings/js/JSSQLTransactionCustom.cpp')
-rw-r--r-- | WebCore/bindings/js/JSSQLTransactionCustom.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/bindings/js/JSSQLTransactionCustom.cpp b/WebCore/bindings/js/JSSQLTransactionCustom.cpp index 30d59aa..dbe8e3c 100644 --- a/WebCore/bindings/js/JSSQLTransactionCustom.cpp +++ b/WebCore/bindings/js/JSSQLTransactionCustom.cpp @@ -44,6 +44,11 @@ namespace WebCore { JSValue JSSQLTransaction::executeSql(ExecState* exec, const ArgList& args) { + if (args.isEmpty()) { + setDOMException(exec, SYNTAX_ERR); + return jsUndefined(); + } + String sqlStatement = args.at(0).toString(exec); if (exec->hadException()) return jsUndefined(); |