mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 21:46:48 +00:00

Refs: https://github.com/nodejs/node/issues/39098 PR-URL: https://github.com/nodejs/node/pull/39176 Fixes: https://github.com/nodejs/node/issues/39098 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
12 lines
194 B
JavaScript
12 lines
194 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const assert = require('assert');
|
|
|
|
assert.strictEqual(typeof DOMException, 'function');
|
|
|
|
assert.throws(() => {
|
|
atob('我要抛错!');
|
|
}, DOMException);
|