Explorar el Código

node 0.12 test fix

sanex3339 hace 8 años
padre
commit
4b27d1442b
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      test/dev/test.ts

+ 4 - 0
test/dev/test.ts

@@ -1,5 +1,9 @@
 'use strict';
 
+if (!(<any>global)._babelPolyfill) {
+    require('babel-polyfill');
+}
+
 const JavaScriptObfuscator: any = require("../../index");
 
 let obfuscatedCode: string = JavaScriptObfuscator.obfuscate(