summaryrefslogtreecommitdiff
path: root/test/parallel/test-global-domexception.js
blob: d19b5a5e4f259d08b249f0e6e8b5ff1dd360a68e (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';

require('../common');

const assert = require('assert');

assert.strictEqual(typeof DOMException, 'function');

assert.throws(() => {
  atob('我要抛错!');
}, DOMException);