Notes /
MaximPegasusLimitsProblemlimits ProblemAdding debugging fails: D0 duk_heap_alloc.c:621 (duk__dump_type_sizes): duk_re_compiler_ctx=196 D0 duk_heap_alloc.c:624 (duk__dump_type_limits): limits However, it works under the host platform. To compile on the host platform (the Mac):
D0 duk_heap_alloc.c:605 (duk__dump_type_sizes): duk_re_compiler_ctx=336 D0 duk_heap_alloc.c:608 (duk__dump_type_limits): limits D0 duk_heap_alloc.c:611 (duk__dump_type_limits): DUK_INT8_{MIN,MAX}=[-128,127]=[-128.000000,127.000000] D0 duk_heap_alloc.c:612 (duk__dump_type_limits): DUK_UINT8_{MIN,MAX}=[0,255]=[0.000000,255.000000] Here's where the failure occurs in duktape.c: DUK_LOCAL void duk__dump_type_limits(void) { DUK_D(DUK_DPRINT("limits")); /* basic types */ DUK__DUMPLM_SIGNED(INT8); ... #define DUK__DUMPLM_SIGNED_RAW(t,a,b) do { \ DUK_D(DUK_DPRINT(t "=[%ld,%ld]=[%lf,%lf]", \ (long) (a), (long) (b), \ (double) (a), (double) (b))); \ } while (0) The workaround is to edit #if defined(DUK_USE_DEBUG) duk__dump_misc_options(); duk__dump_type_sizes(); // duk__dump_type_limits(); #endif
|