summaryrefslogtreecommitdiff
path: root/fxjs/fxjs_v8.h
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-10-24 21:46:57 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-25 18:14:23 +0000
commit5daf07afe5b76e702d053aaca648b977ec3bb663 (patch)
tree7f7d36eabd41737fce559d25adf7a17046c9f007 /fxjs/fxjs_v8.h
parent80435cb746fa7bd22cf062ab39829ec86000fd21 (diff)
downloadpdfium-5daf07afe5b76e702d053aaca648b977ec3bb663.tar.xz
Make NewNull return an actual Null
This CL updates the CFXJS_Engine::NewNull method to return a real v8::Null instead of an empty v8::Local. This also adds a NewUndefined and returns undefined in most of the places null was returned previously. Change-Id: If1a96bf253057892a3b709cbc72f8825c52503c3 Reviewed-on: https://pdfium-review.googlesource.com/16730 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/fxjs_v8.h')
-rw-r--r--fxjs/fxjs_v8.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fxjs/fxjs_v8.h b/fxjs/fxjs_v8.h
index f5e52411f3..eee85e031d 100644
--- a/fxjs/fxjs_v8.h
+++ b/fxjs/fxjs_v8.h
@@ -179,6 +179,7 @@ class CFXJS_Engine {
v8::Local<v8::Object> GetThisObj();
v8::Local<v8::Value> NewNull();
+ v8::Local<v8::Value> NewUndefined();
v8::Local<v8::Array> NewArray();
v8::Local<v8::Number> NewNumber(int number);
v8::Local<v8::Number> NewNumber(double number);