Skip to content

Commit

Permalink
Ensure loading of debug & release versions in the simulator (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Mar 7, 2018
1 parent 8ffb5bc commit 7b85dca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/host/node_cscript.js
@@ -1,4 +1,12 @@
"use strict";

// trick UMD loader to load debug & release versions through a fake AMD define
function define (any, factory) {
global.gpf = {};
factory(global.gpf);
}
define.amd = true;
global.define = define;

require("./wscript/setup.js");
require("./cscript.js");

0 comments on commit 7b85dca

Please sign in to comment.