summaryrefslogtreecommitdiff
path: root/fxjs/README
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-05-31 21:42:53 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-31 21:42:53 +0000
commit73659ee409ae4840c5019633a5c4000eececd7c0 (patch)
tree1994040141336aa2a59f4809ca3011dfbbf080fe /fxjs/README
parent430fcb2955c48d0046518faea5afde91c5c0ce60 (diff)
downloadpdfium-73659ee409ae4840c5019633a5c4000eececd7c0.tar.xz
Update fxjs README
TBR=dsinclair@chromium.org Change-Id: I6f2a4a4b39c38a1bcfcf817a5c2aa51414291ad9 Reviewed-on: https://pdfium-review.googlesource.com/33451 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/README')
-rw-r--r--fxjs/README8
1 files changed, 8 insertions, 0 deletions
diff --git a/fxjs/README b/fxjs/README
index a38e746d4e..85c5edf79c 100644
--- a/fxjs/README
+++ b/fxjs/README
@@ -33,3 +33,11 @@ Slot 1's contents are determined by these tags:
A FXJSE_CLASS_DESCRIPTOR pointer means to expect an actual v8 function
object, and not an aligned pointer.
+Because PDFium uses V8 for various unrelated purposes, there may be up to
+four v8::Contexts (JS Global Objects) associated with each document. One is
+used by FXJS and holds objects as described by the js_api_reference.pdf
+specification. The others are used by FXJSE.
+
+FXJS requires that it can find itself whatever the current context might
+be through a v8::Context's slot -- even if one of the FXJSE contexts is
+current. \ No newline at end of file