DescriptionReturn error information from pdfium to JS.
This implements the previously unimplemented JS_Error() function.
Along the way:
- fix some IWYU when the include order in global.cpp was perturbed.
- remove some uses of JS_ErrorString, to increase transparency.
- use vp.IsSetting() in place of !vp.IsGetting() for clarity.
- specify an error string on several error return paths.
- add an error string for writing readonly properties.
- rename an error string constant to reflect the actual message.
- replace calls to variadic Format() with a function doing string appends.
- remove unused JS_GetClassName()
R=thestig@chromium.org
Committed: https://pdfium.googlesource.com/pdfium/+/b720d0a14601f1496ef15297bc46d401f5a2a890
Patch Set 1 #Patch Set 2 : Rename inaccurately named IDS_JSPARAM_INCORRECT #Patch Set 3 : Tabs #Patch Set 4 : Fix scope of c_str() #
Total comments: 6
Patch Set 5 : Address comments in #3. #Patch Set 6 : Tabs. Argh. #
Total comments: 1
Patch Set 7 : Typedefs #
Messages
Total messages: 8 (1 generated)
|