From ad1f7b410cd6885bd22d9ee49d9f80d3017f131f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 11 Jul 2018 13:04:43 +0000 Subject: Check GetObjDefnID() in various JS functions. Consolidate all the checks into JSGetObject(), and add GetObjDefnID() methods for classes that are missing it. BUG=chromium:862059 Change-Id: I2c2b725a01dcd259ef712d2513fcf740cc410b15 Reviewed-on: https://pdfium-review.googlesource.com/37510 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fxjs/cjs_report.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fxjs/cjs_report.h') diff --git a/fxjs/cjs_report.h b/fxjs/cjs_report.h index 36a00ce9f5..f9d1dc8ce4 100644 --- a/fxjs/cjs_report.h +++ b/fxjs/cjs_report.h @@ -13,6 +13,7 @@ class CJS_Report : public CJS_Object { public: + static int GetObjDefnID(); static void DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType); CJS_Report(v8::Local pObject, CJS_Runtime* pRuntime); -- cgit v1.2.3