@@ -247,6 +247,7 @@ def decorated(self, *args, **kwargs):
247
247
def requires_node (func ):
248
248
assert callable (func )
249
249
250
+ @wraps (func )
250
251
def decorated (self , * args , ** kwargs ):
251
252
self .require_node ()
252
253
return func (self , * args , ** kwargs )
@@ -257,6 +258,7 @@ def decorated(self, *args, **kwargs):
257
258
def requires_node_canary (func ):
258
259
assert callable (func )
259
260
261
+ @wraps (func )
260
262
def decorated (self , * args , ** kwargs ):
261
263
self .require_node_canary ()
262
264
return func (self , * args , ** kwargs )
@@ -267,6 +269,7 @@ def decorated(self, *args, **kwargs):
267
269
def requires_wasm64 (func ):
268
270
assert callable (func )
269
271
272
+ @wraps (func )
270
273
def decorated (self , * args , ** kwargs ):
271
274
self .require_wasm64 ()
272
275
return func (self , * args , ** kwargs )
@@ -277,6 +280,7 @@ def decorated(self, *args, **kwargs):
277
280
def requires_wasm_eh (func ):
278
281
assert callable (func )
279
282
283
+ @wraps (func )
280
284
def decorated (self , * args , ** kwargs ):
281
285
self .require_wasm_eh ()
282
286
return func (self , * args , ** kwargs )
@@ -287,6 +291,7 @@ def decorated(self, *args, **kwargs):
287
291
def requires_wasm_exnref (func ):
288
292
assert callable (func )
289
293
294
+ @wraps (func )
290
295
def decorated (self , * args , ** kwargs ):
291
296
self .require_wasm_exnref ()
292
297
return func (self , * args , ** kwargs )
@@ -297,6 +302,7 @@ def decorated(self, *args, **kwargs):
297
302
def requires_v8 (func ):
298
303
assert callable (func )
299
304
305
+ @wraps (func )
300
306
def decorated (self , * args , ** kwargs ):
301
307
self .require_v8 ()
302
308
return func (self , * args , ** kwargs )
@@ -316,6 +322,8 @@ def decorated(self, *args, **kwargs):
316
322
317
323
318
324
def node_pthreads (f ):
325
+ assert callable (f )
326
+
319
327
@wraps (f )
320
328
def decorated (self , * args , ** kwargs ):
321
329
self .setup_node_pthreads ()
0 commit comments