| 118 | } |
| 119 | |
| 120 | void ArrayHelper::Throw(Isolate* isolate, const std::string& errorMessage) { |
| 121 | auto errMsg = ArgConverter::ConvertToV8String(isolate, errorMessage.c_str()); |
| 122 | auto err = Exception::Error(errMsg); |
| 123 | isolate->ThrowException(err); |
| 124 | } |
| 125 | |
| 126 | jobject ArrayHelper::CreateArrayByClassName(const string& typeName, int length) { |
| 127 | JEnv env; |