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