Sha256: 5bdd411e656667e56e15c1c87634337d7b289308cdc52aa0db926f7558a13c75

Contents?: true

Size: 776 Bytes

Versions: 3

Compression:

Stored size: 776 Bytes

Contents

"use strict";

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


module.exports = {
  convertInherit(obj, ret) {
    let key, value;

    key = "capture";
    value = obj === undefined || obj === null ? undefined : obj[key];
    if (value !== undefined) {
      ret[key] = conversions["boolean"](value);
    } else {
      ret[key] = false;
    }
  },

  convert(obj) {
    if (obj !== undefined && typeof obj !== "object") {
      throw new TypeError("Dictionary has to be an object");
    }
    if (obj instanceof Date || obj instanceof RegExp) {
      throw new TypeError("Dictionary may not be a Date or RegExp object");
    }

    const ret = Object.create(null);
    module.exports.convertInherit(obj, ret);
    return ret;
  }
};

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js
lanes-0.8.0 node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js
select_all-rails-0.3.1 node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js