1 // Copyright 2017 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #include "fxjs/cjs_event_context_stub.h" 8 9 CJS_EventContextStub::CJS_EventContextStub() = default; 10 11 CJS_EventContextStub::~CJS_EventContextStub() = default; 12 RunScript(const WideString & script)13absl::optional<IJS_Runtime::JS_Error> CJS_EventContextStub::RunScript( 14 const WideString& script) { 15 return IJS_Runtime::JS_Error(1, 1, L"JavaScript support not present"); 16 } 17