From 0568e8af01329db75831102fe667ac1ada7af522 Mon Sep 17 00:00:00 2001 From: Jimmy Thomson Date: Thu, 8 Feb 2018 19:00:50 -0800 Subject: [PATCH] chakrashim: fixing build failure by adding v8::Module::GetException --- deps/chakrashim/include/v8.h | 5 +++++ deps/chakrashim/src/v8module.cc | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/deps/chakrashim/include/v8.h b/deps/chakrashim/include/v8.h index 9f890268bf8..389315f1dc5 100644 --- a/deps/chakrashim/include/v8.h +++ b/deps/chakrashim/include/v8.h @@ -2994,6 +2994,11 @@ class V8_EXPORT Module { */ Status GetStatus() const; + /** + * For a module in kErrored status, this returns the corresponding exception. + */ + Local GetException() const; + /** * Returns the number of modules requested by this module. */ diff --git a/deps/chakrashim/src/v8module.cc b/deps/chakrashim/src/v8module.cc index c6732a6018b..3994d814301 100644 --- a/deps/chakrashim/src/v8module.cc +++ b/deps/chakrashim/src/v8module.cc @@ -28,6 +28,10 @@ namespace v8 { return kUninstantiated; } + Local Module::GetException() const { + return Local(); + } + int Module::GetModuleRequestsLength() const { return 0; }