diff options
author | dsinclair <dsinclair@chromium.org> | 2016-06-06 09:49:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-06 09:49:32 -0700 |
commit | 884b4f942d510974e713361b84a717340eb928b9 (patch) | |
tree | 712d15560e345be172f2e6c71a5f2bd85fe5e663 /fpdfsdk/jsapi/fxjs_v8.cpp | |
parent | f7e108b2d0c2f67a143e99693df084bfff7037ec (diff) | |
download | pdfium-884b4f942d510974e713361b84a717340eb928b9.tar.xz |
Remove unused context param from execute.
The IJS_Context parameter is never used, removed.
Review-Url: https://codereview.chromium.org/2035743002
Diffstat (limited to 'fpdfsdk/jsapi/fxjs_v8.cpp')
-rw-r--r-- | fpdfsdk/jsapi/fxjs_v8.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fpdfsdk/jsapi/fxjs_v8.cpp b/fpdfsdk/jsapi/fxjs_v8.cpp index f8c2a3dd6d..73f6bbf4fb 100644 --- a/fpdfsdk/jsapi/fxjs_v8.cpp +++ b/fpdfsdk/jsapi/fxjs_v8.cpp @@ -414,12 +414,11 @@ void FXJS_SetRuntimeForV8Context(v8::Local<v8::Context> v8Context, #endif // PDF_ENABLE_XFA int FXJS_Execute(v8::Isolate* pIsolate, - IJS_Context* pJSContext, - const wchar_t* script, + const CFX_WideString& script, FXJSErr* pError) { v8::Isolate::Scope isolate_scope(pIsolate); v8::TryCatch try_catch(pIsolate); - CFX_ByteString bsScript = CFX_WideString(script).UTF8Encode(); + CFX_ByteString bsScript = script.UTF8Encode(); v8::Local<v8::Context> context = pIsolate->GetCurrentContext(); v8::Local<v8::Script> compiled_script; if (!v8::Script::Compile(context, |