The interaction of two different scenes - first on c++ and second on javacript

Hi all

I want build two scenes for native platform. First base on c++. Second base on javascript. First must call Second. It’s simple. This example consider in js-test.

But I need return control in First c++ scene, when Second javascript scene will be closed.
how to do it?

Big thank for any help!

call javascript scene

ScriptingCore::getInstance()->runScript(js-file-with-ccgame-script);

Ex: ScriptingCore::getInstance()->runScript("myGame.js"); //script start game can see in main.js

call cpp scene
using js-binding https://github.com/cocos2d/bindings-generator
in cpp method

void CallCpp::callAppScene()
{
	log("***** Call cpp!");
	auto scene = AppScene::createScene();
	cocos2d::Director::getInstance()->runWithScene(scene);
}