| 531 | } |
| 532 | |
| 533 | static JSValue js_evalScript_262(JSContext *ctx, JSValueConst this_val, |
| 534 | int argc, JSValueConst *argv) |
| 535 | { |
| 536 | const char *str; |
| 537 | size_t len; |
| 538 | JSValue ret; |
| 539 | str = JS_ToCStringLen(ctx, &len, argv[0]); |
| 540 | if (!str) |
| 541 | return JS_EXCEPTION; |
| 542 | ret = JS_Eval(ctx, str, len, "<evalScript>", JS_EVAL_TYPE_GLOBAL); |
| 543 | JS_FreeCString(ctx, str); |
| 544 | return ret; |
| 545 | } |
| 546 | |
| 547 | static long cpu_count(void) |
| 548 | { |
nothing calls this directly
no test coverage detected