| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent be671c3 commit cbd3cf0
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -139,6 +139,11 @@ MaybeLocal<Value> InternalMakeCallback(Environment* env, | |||
| 139 | 139 | Local<Value> argv[], | |
| 140 | 140 | async_context asyncContext) { | |
| 141 | 141 | CHECK(!recv.IsEmpty()); | |
| 142 | + #ifdef DEBUG | ||
| 143 | + for (int i = 0; i < argc; i++) | ||
| 144 | + CHECK(!argv[i].IsEmpty()); | ||
| 145 | + #endif | ||
| 146 | + | ||
| 142 | 147 | InternalCallbackScope scope(env, recv, asyncContext); | |
| 143 | 148 | if (scope.Failed()) { | |
| 144 | 149 | return MaybeLocal<Value>(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -710,6 +710,7 @@ void DecorateErrorStack(Environment* env, | |||
| 710 | 710 | void FatalException(Isolate* isolate, | |
| 711 | 711 | Local<Value> error, | |
| 712 | 712 | Local<Message> message) { | |
| 713 | + CHECK(!error.IsEmpty()); | ||
| 713 | 714 | HandleScope scope(isolate); | |
| 714 | 715 | ||
| 715 | 716 | Environment* env = Environment::GetCurrent(isolate); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments