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

Commit

Permalink
deps: updating chakrashim with new experimental v8 api stub to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
MSLaguana authored and kfarnung committed Mar 7, 2018
1 parent 284c5b9 commit 0ad3d53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ typedef MaybeLocal<Promise>(*HostImportModuleDynamicallyCallback)(
Local<Context> context, Local<ScriptOrModule> referrer,
Local<String> specifier);

typedef void (*HostInitializeImportMetaObjectCallback)(
Local<Context> context,
Local<Module> module,
Local<Object> meta);

template <class T>
class Local {
public:
Expand Down Expand Up @@ -2706,6 +2711,8 @@ class V8_EXPORT Isolate {

void SetHostImportModuleDynamicallyCallback(
HostImportModuleDynamicallyCallback callback);
void SetHostInitializeImportMetaObjectCallback(
HostInitializeImportMetaObjectCallback callback);

void Enter();
void Exit();
Expand Down
5 changes: 5 additions & 0 deletions deps/chakrashim/src/v8v8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ void Isolate::SetHostImportModuleDynamicallyCallback(
// CHAKRA-TODO
}

void Isolate::SetHostInitializeImportMetaObjectCallback(
HostInitializeImportMetaObjectCallback callback) {
CHAKRA_UNIMPLEMENTED();
}

void Isolate::SetFatalErrorHandler(FatalErrorCallback that) {
// CONSIDER: Ignoring for now, since we don't have an equivalent concept.
}
Expand Down

0 comments on commit 0ad3d53

Please sign in to comment.