Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a migration thunk for the engine/system split.

  • Loading branch information...
commit 744e94ec509afc03607bb6715cdc232a065657ea 1 parent 0ce6e7a
@kriskowal kriskowal authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 narwhal.js
View
10 narwhal.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.