mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Embed for jsc. It doesn't works for now.
This commit is contained in:
@ -114,6 +114,8 @@ int main(int argc, char *argv[])
|
||||
CJSContextScope scope(oContext1);
|
||||
oContext1->Embed<CTestEmbed>();
|
||||
|
||||
// JSSmart<CJSValue> oResTestEmbed1 = oContext1->runScript("(function() { return CreateEmbedObject('Good', 'test', 'third', 'Wow'); })();");
|
||||
// std::cout << oResTestEmbed1->toStringA() << std::endl;
|
||||
JSSmart<CJSValue> oResTestEmbed1 = oContext1->runScript("(function() { var value = CreateEmbedObject('CTestEmbed'); return value.FunctionSum(1, 2); })();");
|
||||
std::cout << oResTestEmbed1->toInt32() << std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user