Dynamic binary eval.

Hello everyone,

I just noticed that when i try to load binary files dynamicaly, for example, using for loop and looping through some array for example:

var arr = [“home”,”front”];

for(i=0;i<arr.length;i++) {
require(‘nw.gui’).Window.get().evalNWBin(null, process.cwd() + ‘/’ + arr[i] + ‘.bin’);

home.bin get executed twice. It never get to front.bin.

Anyway no mather how much arr is long, first element will be evaled for arr.length times.

OS: Debian Jessie x64
NW: 0.14.6

Author: Fantashit

1 thought on “Dynamic binary eval.

Comments are closed.