Skip to content

Commit 749f1ac

Browse files
Anisha Rohramhdawson
authored andcommitted
fix FunctionCallbackInfo only converted in .cc files
PR-URL: #132 Reviewed-By: Jason Ginchereau <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent ed6782a commit 749f1ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/conversion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ var SourceFileOperations = [
189189
[ /constructor_template/g, 'constructor' ],
190190

191191
[ /Nan::FunctionCallbackInfo<(v8::)*Value>\s*&\s*info\)\s*{/g, 'Napi::CallbackInfo& info) {\n Napi::Env env = info.Env();' ],
192-
192+
[ /Nan::FunctionCallbackInfo<(v8::)*Value>\s*&\s*info\);/g, 'Napi::CallbackInfo& info);' ],
193193

194194
[ /info\[(\d+)\]->/g, 'info[$1].' ],
195195
[ /info\[([\w\d]+)\]->/g, 'info[$1].' ],

0 commit comments

Comments
 (0)