mceSystems / node-jsc

A node.js port to the JavaScriptCore engine and iOS
Other
221 stars 16 forks source link

Connect Isolate to JSC::VM by inheriting JSC::VM::ClientData #18

Closed Constellation closed 3 years ago

Constellation commented 5 years ago

We can directly put Isolate into JSC::VM. JSC::VM has clientData field, and we can put client data into this field. By using this, we can set bidirectional links between Isolate and JSC::VM, which is super useful since we can just use JSC::VM as much as possible. And once Isolate is needed, we can retrieve it from JSC::VM.