I’m calling Script::Compile() and it returns me an empty handle as result. I’ve traced into this method and finally found that
i::Handle<i::SharedFunctionInfo> result = i::Compiler::Compile(str, ....
is returning the empty handle. That means compilation error.
But does anyone know is there a way to get error message from compuler in this case to get know where error has occured?
Take a look at the
ReportExceptionfunction in theShellexample. You need to use av8::TryCatchto capture the exception and report on the error.