From cba3f6142704ce228aaf54b5c98c6ef5b3f871be Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Fri, 13 Dec 2019 20:55:05 -0500 Subject: Bug 1343481 - Part 6: Add native functions wrapper for GetInternalError and GetTypeError. Tag #1287 --- js/src/jsexn.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/src/jsexn.h') diff --git a/js/src/jsexn.h b/js/src/jsexn.h index 00120d89c..ee69e3c50 100644 --- a/js/src/jsexn.h +++ b/js/src/jsexn.h @@ -131,6 +131,11 @@ class AutoAssertNoPendingException extern const char* ValueToSourceForError(JSContext* cx, HandleValue val, JSAutoByteString& bytes); +bool +GetInternalError(JSContext* cx, unsigned errorNumber, MutableHandleValue error); +bool +GetTypeError(JSContext* cx, unsigned errorNumber, MutableHandleValue error); + } // namespace js #endif /* jsexn_h */ -- cgit v1.2.3