Logo
Explore Help
Sign In
1berry/nodejs
1
0
Fork 0
You've already forked nodejs
Code Issues Packages Projects Releases Wiki Activity
nodejs/test/parallel/test-global-domexception.js

12 lines
194 B
JavaScript
Raw Permalink Normal View History

lib: expose `DOMException` as global 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>
2021-06-28 16:29:54 +08:00
'use strict';
require('../common');
const assert = require('assert');
assert.strictEqual(typeof DOMException, 'function');
assert.throws(() => {
atob('我要抛错!');
}, DOMException);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 3909ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API