0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-24 12:10:08 +01:00
nodejs/test/wpt/test-domexception.js

19 lines
474 B
JavaScript
Raw Normal View History

'use strict';
const { WPTRunner } = require('../common/wpt');
const runner = new WPTRunner('webidl/ecmascript-binding/es-exceptions');
runner.setFlags(['--expose-internals']);
runner.setInitScript(`
const { internalBinding } = require('internal/test/binding');
const { DOMException } = internalBinding('messaging');
Object.defineProperty(global, 'DOMException', {
writable: true,
configurable: true,
value: DOMException,
});
`);
runner.runJsTests();