Skip to content

Commit bde2dd2

Browse files
committed
fixed test error
1 parent 5aedb99 commit bde2dd2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyduktape2.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ cdef object to_python(DuktapeContext py_ctx, duk_idx_t index, JSProxy bind_proxy
547547
return value
548548

549549
if type_ == DUK_TYPE_STRING:
550-
return get_python_string(ctx, index).decode()
550+
return get_python_string(ctx, index)
551551

552552
if type_ == DUK_TYPE_OBJECT:
553553
value_ptr = duk_get_heapptr(ctx, index)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[
1313
Extension(
1414
'pyduktape2',
15-
['pyduktape2.pyx', 'vendor/duk_module_duktape.c', 'vendor/duk_print_alert.c', 'vendor/duktape.c'],
15+
['pyduktape2.pyx'],
1616
include_dirs=['vendor'],
1717
)
1818
],

0 commit comments

Comments
 (0)