File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/node_modules/events/tests

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

errors.js344 B · 14 lines
'use strict';var assert = require('assert');var EventEmitter = require('../'); var EE = new EventEmitter(); assert.throws(function () {  EE.emit('error', 'Accepts a string');}, 'Error: Unhandled error. (Accepts a string)'); assert.throws(function () {  EE.emit('error', { message: 'Error!' });}, 'Unhandled error. ([object Object])');