diff options
Diffstat (limited to 'webkit/port/bindings/v8/ScriptCallContextV8.cpp')
| -rw-r--r-- | webkit/port/bindings/v8/ScriptCallContextV8.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/webkit/port/bindings/v8/ScriptCallContextV8.cpp b/webkit/port/bindings/v8/ScriptCallContextV8.cpp index cef54a4..35400e8 100644 --- a/webkit/port/bindings/v8/ScriptCallContextV8.cpp +++ b/webkit/port/bindings/v8/ScriptCallContextV8.cpp @@ -29,6 +29,7 @@ #include "config.h" #include "ScriptCallContext.h" +#include "ScriptValue.h" #include "PlatformString.h" #include "KURL.h" @@ -46,6 +47,14 @@ ScriptCallContext::ScriptCallContext(const v8::Arguments& args) m_sourceURL = KURL(V8Proxy::GetSourceName()); } +ScriptValue ScriptCallContext::argumentAt(unsigned index) +{ + if (index >= argumentCount()) + return ScriptValue(v8::Handle<v8::Value>()); + + return ScriptValue(m_args[index]); +} + String ScriptCallContext::argumentStringAt(unsigned index, bool checkForNullOrUndefined) { |
