-
-
Notifications
You must be signed in to change notification settings - Fork 601
Open
Description
My problem is multiple classes (objects) exported via my Init() functions.
I have two classes that I want to use in my javascript but the 'constructor' seems to be overwritten with whoever gets Init()'d i.e.:
// This code is present in both classes Init() method:
Napi::FunctionReference* constructor = new Napi::FunctionReference();
*constructor = Napi::Persistent(func);
env.SetInstanceData(constructor);
exports.Set("Dataset", func);
Question: Is it possible to export have more than one class object??
ikokostya
Metadata
Metadata
Assignees
Labels
No labels