mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 12:10:08 +01:00
19 lines
474 B
JavaScript
19 lines
474 B
JavaScript
|
'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();
|