GITLAB

Boyan Georgiev / jsdom-with-fix

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • jsdom-with-fix
  • lib
  • jsdom
  • living
  • aborting
  • AbortController-impl.js
  • 858f2bdf5   fixes Browse Code ยป
    Boyan Georgiev
    2020-03-09 09:55:22 -0400  
AbortController-impl.js 307 Bytes
edit raw blame history permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
"use strict";

const AbortSignal = require("../generated/AbortSignal");

class AbortControllerImpl {
  constructor(globalObject) {
    this.signal = AbortSignal.createImpl(globalObject, []);
  }

  abort() {
    this.signal._signalAbort();
  }
}

module.exports = {
  implementation: AbortControllerImpl
};