Sha256: 891b08f5af69f4b87b8cc7c2d06c0f99e20b7d0f131295dd770d880ddb47f008

Contents?: true

Size: 1.8 KB

Versions: 50

Compression:

Stored size: 1.8 KB

Contents

/* File generated automatically by the QuickJS compiler. */

#include "quickjs-libc.h"

const uint32_t qjsc_a_size = 115;

const uint8_t qjsc_a[115] = {
 0x02, 0x04, 0x02, 0x69, 0x0e, 0x63, 0x6f, 0x6e,
 0x73, 0x6f, 0x6c, 0x65, 0x06, 0x6c, 0x6f, 0x67,
 0x08, 0x61, 0x2e, 0x6a, 0x73, 0x0e, 0x00, 0x06,
 0x00, 0xa0, 0x01, 0x00, 0x01, 0x00, 0x03, 0x00,
 0x00, 0x41, 0x01, 0xa2, 0x01, 0x00, 0x00, 0x00,
 0x3f, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x3e, 0xe1,
 0x00, 0x00, 0x00, 0x00, 0x06, 0xc9, 0xb5, 0x39,
 0xe1, 0x00, 0x00, 0x00, 0x38, 0xe1, 0x00, 0x00,
 0x00, 0xba, 0xa3, 0xea, 0x23, 0x38, 0xe2, 0x00,
 0x00, 0x00, 0x42, 0xe3, 0x00, 0x00, 0x00, 0x38,
 0xe1, 0x00, 0x00, 0x00, 0x24, 0x01, 0x00, 0xc9,
 0x38, 0xe1, 0x00, 0x00, 0x00, 0x8f, 0x11, 0x39,
 0xe1, 0x00, 0x00, 0x00, 0x0e, 0xec, 0xd6, 0xc5,
 0x28, 0xc8, 0x03, 0x01, 0x06, 0x1f, 0x21, 0x58,
 0x00, 0x13, 0x08,
};

static JSContext *JS_NewCustomContext(JSRuntime *rt)
{
  JSContext *ctx = JS_NewContextRaw(rt);
  if (!ctx)
    return NULL;
  JS_AddIntrinsicBaseObjects(ctx);
  JS_AddIntrinsicDate(ctx);
  JS_AddIntrinsicEval(ctx);
  JS_AddIntrinsicStringNormalize(ctx);
  JS_AddIntrinsicRegExp(ctx);
  JS_AddIntrinsicJSON(ctx);
  JS_AddIntrinsicProxy(ctx);
  JS_AddIntrinsicMapSet(ctx);
  JS_AddIntrinsicTypedArrays(ctx);
  JS_AddIntrinsicPromise(ctx);
  JS_AddIntrinsicBigInt(ctx);
  return ctx;
}

int main(int argc, char **argv)
{
  JSRuntime *rt;
  JSContext *ctx;
  rt = JS_NewRuntime();
  js_std_set_worker_new_context_func(JS_NewCustomContext);
  js_std_init_handlers(rt);
  JS_SetModuleLoaderFunc(rt, NULL, js_module_loader, NULL);
  ctx = JS_NewCustomContext(rt);
  js_std_add_helpers(ctx, argc, argv);
  js_std_eval_binary(ctx, qjsc_a, qjsc_a_size, 0);
  js_std_loop(ctx);
  JS_FreeContext(ctx);
  JS_FreeRuntime(rt);
  return 0;
}

Version data entries

50 entries across 49 versions & 6 rubygems

Version Path
ufos-1.0.94 ./other/experimental_code/quickjs/out55.c
aliens-1.0.94 ./other/experimental_code/quickjs/out55.c
freespeech-1.0.94 ./other/experimental_code/quickjs/out55.c
elonmusk-1.0.94 ./other/experimental_code/quickjs/out55.c
politics-1.0.94 ./other/experimental_code/quickjs/out55.c
democracy-1.0.94 ./other/experimental_code/quickjs/out55.c
democracy-1.0.93 ./other/experimental_code/quickjs/out55.c
ufos-1.0.91 ./other/experimental_code/quickjs/out55.c
aliens-1.0.91 ./other/experimental_code/quickjs/out55.c
freespeech-1.0.91 ./other/experimental_code/quickjs/out55.c
elonmusk-1.0.91 ./other/experimental_code/quickjs/out55.c
politics-1.0.91 ./other/experimental_code/quickjs/out55.c
politics-1.0.89 ./other/experimental_code/quickjs/out55.c
ufos-1.0.87 ./other/experimental_code/quickjs/out55.c
aliens-1.0.87 ./other/experimental_code/quickjs/out55.c
freespeech-1.0.87 ./other/experimental_code/quickjs/out55.c
elonmusk-1.0.87 ./other/experimental_code/quickjs/out55.c
politics-1.0.87 ./other/experimental_code/quickjs/out55.c
ufos-1.0.88 ./other/experimental_code/quickjs/out55.c
aliens-1.0.88 ./other/experimental_code/quickjs/out55.c