diff options
author | Lei Zhang <thestig@chromium.org> | 2018-07-11 13:04:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-11 13:04:43 +0000 |
commit | ad1f7b410cd6885bd22d9ee49d9f80d3017f131f (patch) | |
tree | 6a7a9fa616004ab6c457c46682dd00125952913b /fxjs/cjs_global.h | |
parent | b1a4db5551ca7c211c8acbec2b657d25fa7d7f1d (diff) | |
download | pdfium-ad1f7b410cd6885bd22d9ee49d9f80d3017f131f.tar.xz |
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 <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjs_global.h')
-rw-r--r-- | fxjs/cjs_global.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fxjs/cjs_global.h b/fxjs/cjs_global.h index ba5d57cd07..51f872a782 100644 --- a/fxjs/cjs_global.h +++ b/fxjs/cjs_global.h @@ -18,6 +18,7 @@ class CJS_GlobalData; class CJS_Global : public CJS_Object { public: + static int GetObjDefnID(); static void DefineJSObjects(CFXJS_Engine* pEngine); static void DefineAllProperties(CFXJS_Engine* pEngine); |