diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-24 00:15:53 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-24 00:15:53 +0000 |
commit | d86805176f390e0fec1802aae7dbbf1d1d9f53b0 (patch) | |
tree | 435f3e3fc508a0b2ca1b74e23ae50fd46a8f0c8d /testing/resources/javascript/constructor_expected.txt | |
parent | 61fd012d3805257021a03c42ff8e78f3fd66e768 (diff) | |
download | pdfium-d86805176f390e0fec1802aae7dbbf1d1d9f53b0.tar.xz |
Be more particular about FX objects constructed from JS
This is back-filling some more error cases from the work from
a few weeks ago.
Replaces a lambda with a static CallHandler() method since the
verbosity was increasing. It gets invoked if you try to make a new
FXJS object from the javascript side, rather than the C++ side.
Making such an object is a little tricky, since we don't give
these functions names in V8, but they can be obtained via constructor
property from an instance of the object.
Change-Id: Ibca686e75338ac54d08a114f36f930cd424a1eb5
Reviewed-on: https://pdfium-review.googlesource.com/c/44534
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/resources/javascript/constructor_expected.txt')
-rw-r--r-- | testing/resources/javascript/constructor_expected.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/resources/javascript/constructor_expected.txt b/testing/resources/javascript/constructor_expected.txt new file mode 100644 index 0000000000..af0333735c --- /dev/null +++ b/testing/resources/javascript/constructor_expected.txt @@ -0,0 +1,32 @@ +Alert: PASS: this.constructor(): illegal constructor +Alert: PASS: new this.constructor: not a dynamic object +Alert: PASS: app.constructor(): illegal constructor +Alert: PASS: new app.constructor: not a dynamic object +Alert: PASS: event.constructor(): illegal constructor +Alert: PASS: new event.constructor: not a dynamic object +Alert: PASS: font.constructor(): illegal constructor +Alert: PASS: new font.constructor: not a dynamic object +Alert: PASS: global.constructor(): illegal constructor +Alert: PASS: new global.constructor: not a dynamic object +Alert: PASS: util.constructor(): illegal constructor +Alert: PASS: new util.constructor: not a dynamic object +Alert: PASS: style.constructor(): illegal constructor +Alert: PASS: new style.constructor: not a dynamic object +Alert: PASS: color.constructor(): illegal constructor +Alert: PASS: new color.constructor: not a dynamic object +Alert: PASS: border.constructor(): illegal constructor +Alert: PASS: new border.constructor: not a dynamic object +Alert: PASS: display.constructor(): illegal constructor +Alert: PASS: new display.constructor: not a dynamic object +Alert: PASS: console.constructor(): illegal constructor +Alert: PASS: new console.constructor: not a dynamic object +Alert: PASS: position.constructor(): illegal constructor +Alert: PASS: new position.constructor: not a dynamic object +Alert: PASS: highlight.constructor(): illegal constructor +Alert: PASS: new highlight.constructor: not a dynamic object +Alert: PASS: zoomtype.constructor(): illegal constructor +Alert: PASS: new zoomtype.constructor: not a dynamic object +Alert: PASS: scaleHow.constructor(): illegal constructor +Alert: PASS: new scaleHow.constructor: not a dynamic object +Alert: PASS: scaleWhen.constructor(): illegal constructor +Alert: PASS: new scaleWhen.constructor: not a dynamic object |