From 08d9f6e3f0a68bae9eedb015458071e1481d28f4 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Fri, 25 May 2018 15:05:04 +0000 Subject: [xfa] Allow accessing the event changed parameter from JS. This CL updates the CFXJSE_Engine code to access the defined properties of a class if we fail to find the property in any other way. This fixes up an issue where we were unable to read the 'change' property of the CJX_EventPseudoModel because we could not find the 'change' property. Bug: 1066 Change-Id: I4ad205bc527beeca1c3e24a36cdde0c21287d9fb Reviewed-on: https://pdfium-review.googlesource.com/32930 Commit-Queue: Ryan Harrison Reviewed-by: Ryan Harrison --- testing/xfa_js_embedder_test.h | 1 + 1 file changed, 1 insertion(+) (limited to 'testing/xfa_js_embedder_test.h') diff --git a/testing/xfa_js_embedder_test.h b/testing/xfa_js_embedder_test.h index 73487d27c8..27dddc3084 100644 --- a/testing/xfa_js_embedder_test.h +++ b/testing/xfa_js_embedder_test.h @@ -36,6 +36,7 @@ class XFAJSEmbedderTest : public EmbedderTest { bool Execute(const ByteStringView& input); bool ExecuteSilenceFailure(const ByteStringView& input); + CFXJSE_Engine* GetScriptContext() { return script_context_; } CFXJSE_Value* GetValue() const { return value_.get(); } private: -- cgit v1.2.3