| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 049664b commit f444c8e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1061,8 +1061,9 @@ void IndexOfBuffer(const FunctionCallbackInfo<Value>& args) { | |||
| 1061 | 1061 | ||
| 1062 | 1062 | enum encoding enc = static_cast<enum encoding>(args[3].As<Int32>()->Value()); | |
| 1063 | 1063 | ||
| 1064 | - THROW_AND_RETURN_UNLESS_BUFFER(Environment::GetCurrent(args), args[0]); | ||
| 1065 | - THROW_AND_RETURN_UNLESS_BUFFER(Environment::GetCurrent(args), args[1]); | ||
| 1064 | + Environment* env = Environment::GetCurrent(args); | ||
| 1065 | + THROW_AND_RETURN_UNLESS_BUFFER(env, args[0]); | ||
| 1066 | + THROW_AND_RETURN_UNLESS_BUFFER(env, args[1]); | ||
| 1066 | 1067 | ArrayBufferViewContents<char> haystack_contents(args[0]); | |
| 1067 | 1068 | ArrayBufferViewContents<char> needle_contents(args[1]); | |
| 1068 | 1069 | int64_t offset_i64 = args[2].As<Integer>()->Value(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments