MCPcopy Create free account
hub / github.com/Snapchat/Valdi / JS_NewInt64

Function JS_NewInt64

third-party/quickjs/include/quickjs/quickjs.h:516–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514 return JS_MKVAL(JS_TAG_INT, val);
515}
516
517static js_force_inline JSValue JS_NewCatchOffset(JSContext* ctx, int32_t val) {
518 return JS_MKVAL(JS_TAG_CATCH_OFFSET, val);
519}
520
521static js_force_inline JSValue JS_NewInt64(JSContext* ctx, int64_t val) {
522 JSValue v;
523 if (val == (int32_t)val) {
524 v = JS_NewInt32(ctx, val);
525 } else {
526 v = __JS_NewFloat64(ctx, val);
527 }

Callers 3

newWeakRefMethod · 0.85
tsn_set_timeoutFunction · 0.85
tsn_int64Function · 0.85

Calls 2

JS_NewInt32Function · 0.85
__JS_NewFloat64Function · 0.85

Tested by

no test coverage detected