MCPcopy Create free account
hub / github.com/nodejs/nan / NAN_MODULE_INIT

Function NAN_MODULE_INIT

test/cpp/news.cpp:167–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167NAN_MODULE_INIT(Init) {
168 Set(target
169 , New<v8::String>("newNumber").ToLocalChecked()
170 , GetFunction(New<v8::FunctionTemplate>(NewNumber)).ToLocalChecked()
171 );
172 Set(target
173 , New<v8::String>("newNegativeInteger").ToLocalChecked()
174 , GetFunction(New<v8::FunctionTemplate>(NewNegativeInteger))
175 .ToLocalChecked()
176 );
177 Set(target
178 , New<v8::String>("newPositiveInteger").ToLocalChecked()
179 , GetFunction(New<v8::FunctionTemplate>(NewPositiveInteger))
180 .ToLocalChecked()
181 );
182 Set(target
183 , New<v8::String>("newUnsignedInteger").ToLocalChecked()
184 , GetFunction(New<v8::FunctionTemplate>(NewUnsignedInteger))
185 .ToLocalChecked()
186 );
187 Set(target
188 , New<v8::String>("newInt32FromPositive").ToLocalChecked()
189 , GetFunction(New<v8::FunctionTemplate>(NewInt32FromPositive))
190 .ToLocalChecked()
191 );
192 Set(target
193 , New<v8::String>("newInt32FromNegative").ToLocalChecked()
194 , GetFunction(New<v8::FunctionTemplate>(NewInt32FromNegative))
195 .ToLocalChecked()
196 );
197 Set(target
198 , New<v8::String>("newUint32FromPositive").ToLocalChecked()
199 , GetFunction(New<v8::FunctionTemplate>(NewUint32FromPositive))
200 .ToLocalChecked()
201 );
202 Set(target
203 , New<v8::String>("newUint32FromNegative").ToLocalChecked()
204 , GetFunction(New<v8::FunctionTemplate>(NewUint32FromNegative))
205 .ToLocalChecked()
206 );
207 Set(target
208 , New<v8::String>("newUtf8String").ToLocalChecked()
209 , GetFunction(New<v8::FunctionTemplate>(NewUtf8String)).ToLocalChecked()
210 );
211 Set(target
212 , New<v8::String>("newLatin1String").ToLocalChecked()
213 , GetFunction(New<v8::FunctionTemplate>(NewLatin1String)).ToLocalChecked()
214 );
215 Set(target
216 , New<v8::String>("newUcs2String").ToLocalChecked()
217 , GetFunction(New<v8::FunctionTemplate>(NewUcs2String)).ToLocalChecked()
218 );
219 Set(target
220 , New<v8::String>("newStdString").ToLocalChecked()
221 , GetFunction(New<v8::FunctionTemplate>(NewStdString)).ToLocalChecked()
222 );
223 Set(target
224 , New<v8::String>("newRegExp").ToLocalChecked()

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
SetFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected