| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3a9aca9 commit 8615ea6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1046,8 +1046,9 @@ void IndexOfBuffer(const FunctionCallbackInfo<Value>& args) { | |||
| 1046 | 1046 | ||
| 1047 | 1047 | enum encoding enc = static_cast<enum encoding>(args[3].As<Int32>()->Value()); | |
| 1048 | 1048 | ||
| 1049 | - THROW_AND_RETURN_UNLESS_BUFFER(Environment::GetCurrent(args), args[0]); | ||
| 1050 | - THROW_AND_RETURN_UNLESS_BUFFER(Environment::GetCurrent(args), args[1]); | ||
| 1049 | + Environment* env = Environment::GetCurrent(args); | ||
| 1050 | + THROW_AND_RETURN_UNLESS_BUFFER(env, args[0]); | ||
| 1051 | + THROW_AND_RETURN_UNLESS_BUFFER(env, args[1]); | ||
| 1051 | 1052 | ArrayBufferViewContents<char> haystack_contents(args[0]); | |
| 1052 | 1053 | ArrayBufferViewContents<char> needle_contents(args[1]); | |
| 1053 | 1054 | int64_t offset_i64 = args[2].As<Integer>()->Value(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments