Skip to content

fail to execute the compiled binary after devtools is open #6704

Open
@Christywl

Description

@Christywl

======== TEMPLATE BUG FORM ========

NWJS Version : nwjs-sdk-v0.31.3
Operating System : Linux/Windows

Expected behavior

Could load and execute the compiled binary after devtools is open

Actual behavior

fail to Load and execute the compiled binary after devtools is open. When click the button, the compiled binary isn't executed.

How to reproduce

  1. create a simple app
  2. compile the JS source code
  3. launch the app with nwjs and open the devtools
  4. click 'Test' button and check the console log in Devtools

Example:
package.json:

{
  "name":"test",
  "main":"index.html" 
}

index.html:

<script>
function test() {
nw.Window.get().evalNWBin(null, 'test.bin');
console.log("test2");
}
test()

</script>
<button onclick="test()">Test</button>

test.js:
console.log('test1');

test1 only outputs once.
image

If click 'Test' button firstly, and then open the devtools, test1 only outputs normally.
image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions