Lines Matching full:isolate
16 using v8::Isolate;
22 Local<Value> ErrnoException(Isolate* isolate, in ErrnoException() argument
27 Environment* env = Environment::GetCurrent(isolate); in ErrnoException()
31 Local<String> estring = OneByteString(isolate, errors::errno_string(errorno)); in ErrnoException()
35 Local<String> message = OneByteString(isolate, msg); in ErrnoException()
38 String::Concat(isolate, estring, FIXED_ONE_BYTE_STRING(isolate, ", ")); in ErrnoException()
39 cons = String::Concat(isolate, cons, message); in ErrnoException()
44 path_string = String::NewFromUtf8(isolate, path).ToLocalChecked(); in ErrnoException()
48 cons = String::Concat(isolate, cons, FIXED_ONE_BYTE_STRING(isolate, " '")); in ErrnoException()
49 cons = String::Concat(isolate, cons, path_string); in ErrnoException()
50 cons = String::Concat(isolate, cons, FIXED_ONE_BYTE_STRING(isolate, "'")); in ErrnoException()
57 Integer::New(isolate, errorno)).Check(); in ErrnoException()
67 OneByteString(isolate, syscall)).Check(); in ErrnoException()
73 static Local<String> StringFromPath(Isolate* isolate, const char* path) { in StringFromPath() argument
77 isolate, in StringFromPath()
78 FIXED_ONE_BYTE_STRING(isolate, "\\\\"), in StringFromPath()
79 String::NewFromUtf8(isolate, path + 8).ToLocalChecked()); in StringFromPath()
81 return String::NewFromUtf8(isolate, path + 4).ToLocalChecked(); in StringFromPath()
85 return String::NewFromUtf8(isolate, path).ToLocalChecked(); in StringFromPath()
89 Local<Value> UVException(Isolate* isolate, in UVException() argument
95 Environment* env = Environment::GetCurrent(isolate); in UVException()
101 Local<String> js_code = OneByteString(isolate, uv_err_name(errorno)); in UVException()
102 Local<String> js_syscall = OneByteString(isolate, syscall); in UVException()
108 String::Concat(isolate, js_msg, FIXED_ONE_BYTE_STRING(isolate, ": ")); in UVException()
109 js_msg = String::Concat(isolate, js_msg, OneByteString(isolate, msg)); in UVException()
111 String::Concat(isolate, js_msg, FIXED_ONE_BYTE_STRING(isolate, ", ")); in UVException()
112 js_msg = String::Concat(isolate, js_msg, js_syscall); in UVException()
115 js_path = StringFromPath(isolate, path); in UVException()
118 String::Concat(isolate, js_msg, FIXED_ONE_BYTE_STRING(isolate, " '")); in UVException()
119 js_msg = String::Concat(isolate, js_msg, js_path); in UVException()
121 String::Concat(isolate, js_msg, FIXED_ONE_BYTE_STRING(isolate, "'")); in UVException()
125 js_dest = StringFromPath(isolate, dest); in UVException()
128 isolate, js_msg, FIXED_ONE_BYTE_STRING(isolate, " -> '")); in UVException()
129 js_msg = String::Concat(isolate, js_msg, js_dest); in UVException()
131 String::Concat(isolate, js_msg, FIXED_ONE_BYTE_STRING(isolate, "'")); in UVException()
135 Exception::Error(js_msg)->ToObject(isolate->GetCurrentContext()) in UVException()
140 Integer::New(isolate, errorno)).Check(); in UVException()
184 Local<Value> WinapiErrnoException(Isolate* isolate, in WinapiErrnoException() argument
189 Environment* env = Environment::GetCurrent(isolate); in WinapiErrnoException()
196 Local<String> message = OneByteString(isolate, msg); in WinapiErrnoException()
200 String::Concat(isolate, message, FIXED_ONE_BYTE_STRING(isolate, " '")); in WinapiErrnoException()
202 isolate, in WinapiErrnoException()
204 String::NewFromUtf8(isolate, path).ToLocalChecked()); in WinapiErrnoException()
206 String::Concat(isolate, cons2, FIXED_ONE_BYTE_STRING(isolate, "'")); in WinapiErrnoException()
213 obj->Set(env->context(), env->errno_string(), Integer::New(isolate, errorno)) in WinapiErrnoException()
219 String::NewFromUtf8(isolate, path).ToLocalChecked()) in WinapiErrnoException()
226 OneByteString(isolate, syscall)) in WinapiErrnoException()
242 void FatalException(Isolate* isolate, const v8::TryCatch& try_catch) { in FatalException() argument
243 errors::TriggerUncaughtException(isolate, try_catch); in FatalException()