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

Commit

Permalink
chakrashim: shimming new apis
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhorton authored and kfarnung committed Jan 9, 2018
1 parent a2e28d7 commit 00e0d1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -2895,6 +2895,8 @@ class V8_EXPORT Module {
V8_WARN_UNUSED_RESULT bool Instantiate(Local<Context> context,
ResolveCallback callback);

Maybe<bool> InstantiateModule(Local<Context> context,
ResolveCallback callback);
/**
* ModuleEvaluation
*
Expand Down
5 changes: 5 additions & 0 deletions deps/chakrashim/src/v8module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ namespace v8 {
return false;
}

Maybe<bool> Module::InstantiateModule(Local<Context> context,
ResolveCallback callback) {
return Just(false);
}

MaybeLocal<Value> Module::Evaluate(Local<Context> context) {
// CHAKRA-TODO: Find a way to support es6 modules under
// the constraints of the node implementation
Expand Down

0 comments on commit 00e0d1b

Please sign in to comment.