"use strict";constlegacyErrorCodes=require("./legacy-error-codes.json");constidlUtils=require("./utils.js");exports.implementation=classDOMExceptionImpl{constructor([message,name]){this.name=name;this.message=message;}getcode(){returnlegacyErrorCodes[this.name]||0;}};// A proprietary V8 extension that causes the stack property to appear.exports.init=impl=>{if(Error.captureStackTrace){constwrapper=idlUtils.wrapperForImpl(impl);Error.captureStackTrace(wrapper,wrapper.constructor);}};