From 1699982f45d01cb18585eba80cce5326a63d3b67 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 8 Jun 2018 18:23:05 +0000 Subject: Ensure CJS_Return() with error always includes a message. Change the signature of the constructors to make it impossible to do this otherwise. Change-Id: I14e88d98a1128f2d599459ce9337cd6d079469fe Reviewed-on: https://pdfium-review.googlesource.com/34531 Reviewed-by: dsinclair Commit-Queue: Tom Sepez --- fxjs/cjs_report.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fxjs/cjs_report.cpp') diff --git a/fxjs/cjs_report.cpp b/fxjs/cjs_report.cpp index 3a912765f6..eccba07a99 100644 --- a/fxjs/cjs_report.cpp +++ b/fxjs/cjs_report.cpp @@ -34,11 +34,11 @@ CJS_Return CJS_Report::writeText( CJS_Runtime* pRuntime, const std::vector>& params) { // Unsafe, not supported. - return CJS_Return(true); + return CJS_Return(); } CJS_Return CJS_Report::save(CJS_Runtime* pRuntime, const std::vector>& params) { // Unsafe, not supported. - return CJS_Return(true); + return CJS_Return(); } -- cgit v1.2.3