From d739ffcffd551463284a4f4934e1819f71fe3b92 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Sat, 28 Jan 2017 14:54:47 -0800 Subject: [PATCH] Forgot to set module.exports for the new DriveController class; the Node pdp11 shell app runs properly again --- modules/pdp11/bin/pdp11 | 4 ++-- modules/pdp11/lib/drive.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/pdp11/bin/pdp11 b/modules/pdp11/bin/pdp11 index f490412e0..f4a2ef054 100644 --- a/modules/pdp11/bin/pdp11 +++ b/modules/pdp11/bin/pdp11 @@ -83,7 +83,7 @@ var aComponents = []; var asComponentsIgnore = ["embed", "save"]; /* - * A few of the components are subclasses of other classes (eg, "cpustate" is a subclass of "cpu"). + * A few of the components are subclasses of other classes (eg, "cpustate" subclasses "cpu"). * In those situations, we "hoist" the subclass constructor into the corresponding superclass, * because it is the name of the superclass that we rely on during machine initialization. */ @@ -91,7 +91,7 @@ var aSubClasses = { "pdp11/lib/cpustate": "pdp11/lib/cpu", "pdp11/lib/debugger": "shared/es6/debugger" }; - + /** * loadComponents(asFiles) * diff --git a/modules/pdp11/lib/drive.js b/modules/pdp11/lib/drive.js index b34ee3390..2ce942841 100644 --- a/modules/pdp11/lib/drive.js +++ b/modules/pdp11/lib/drive.js @@ -1158,3 +1158,5 @@ DriveController.SOURCE = { LOCAL: "?", REMOTE: "??" }; + +if (NODE) module.exports = DriveController;