Sha256: 9b404e93615b95bd26051da63d631d134ae8c7ff057d2324d094abed18ff8dcc

Contents?: true

Size: 728 Bytes

Versions: 52

Compression:

Stored size: 728 Bytes

Contents

"use strict";

const conversions = require("webidl-conversions");
const utils = require("./utils.js");

exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
  if (typeof value !== "function") {
    throw new globalObject.TypeError(context + " is not a function");
  }

  function invokeTheCallbackFunction() {
    const thisArg = utils.tryWrapperForImpl(this);
    let callResult;

    callResult = Reflect.apply(value, thisArg, []);
  }

  invokeTheCallbackFunction.construct = () => {
    let callResult = Reflect.construct(value, []);
  };

  invokeTheCallbackFunction[utils.wrapperSymbol] = value;
  invokeTheCallbackFunction.objectReference = value;

  return invokeTheCallbackFunction;
};

Version data entries

52 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/whatwg-url/lib/VoidFunction.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/whatwg-url/lib/VoidFunction.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/whatwg-url/lib/VoidFunction.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/whatwg-url/lib/VoidFunction.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/whatwg-url/lib/VoidFunction.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/whatwg-url/lib/VoidFunction.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/whatwg-url/lib/VoidFunction.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js
clapton-0.0.19 lib/clapton/javascripts/node_modules/whatwg-url/lib/VoidFunction.js
clapton-0.0.19 lib/clapton/javascripts/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/whatwg-url/lib/VoidFunction.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/whatwg-url/lib/VoidFunction.js