xref: /third_party/node/test/addons/async-hello-world/test-makecallback-uncaught.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/addons/async-hello-world/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst common = require('../../common');
31cb0ef41Sopenharmony_ciconst { runMakeCallback } = require(`./build/${common.buildType}/binding`);
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ciprocess.on('uncaughtException', common.mustCall());
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_cirunMakeCallback(5, common.mustCall(() => {
81cb0ef41Sopenharmony_ci  throw new Error('foo');
91cb0ef41Sopenharmony_ci}));
10

Indexes created Thu Nov 07 10:32:03 CST 2024