Permalink
Browse files

Added a migration thunk for the engine/system split.

  • Loading branch information...
1 parent 0ce6e7a commit 744e94ec509afc03607bb6715cdc232a065657ea @kriskowal kriskowal committed Mar 27, 2010
Showing with 10 additions and 0 deletions.
  1. +10 −0 narwhal.js
View
@@ -17,6 +17,16 @@ if (modules.fs) {
var file = modules.file;
}
+// XXX: migration for the split between engine and system
+if (modules.engine) {
+ var engine = modules.engine;
+ for (var name in engine) {
+ system[name] = engine[name];
+ }
+}
+// XXX: migration for the rename of evaluate to Module
+system.evaluate = system.evaluate || system.Module;
+
// XXX: migration step for deprecated engines
// the old system.evaluate accepts a tuple and
// the new system.evaluate accepts an object

0 comments on commit 744e94e

Please sign in to comment.