Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
chakrashim: fixing build failure by adding v8::Module::GetException
Browse files Browse the repository at this point in the history
  • Loading branch information
MSLaguana committed Feb 9, 2018
1 parent 47d5430 commit 0568e8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -2994,6 +2994,11 @@ class V8_EXPORT Module {
*/
Status GetStatus() const;

/**
* For a module in kErrored status, this returns the corresponding exception.
*/
Local<Value> GetException() const;

/**
* Returns the number of modules requested by this module.
*/
Expand Down
4 changes: 4 additions & 0 deletions deps/chakrashim/src/v8module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ namespace v8 {
return kUninstantiated;
}

Local<Value> Module::GetException() const {
return Local<Value>();
}

int Module::GetModuleRequestsLength() const {
return 0;
}
Expand Down

0 comments on commit 0568e8a

Please sign in to comment.