Skip to content

Commit cbe8e38

Browse files
committed
fixup! support passing Buffer or ArrayBuffer to evalNWBin
1 parent b0693cd commit cbe8e38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/References/Window.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ Execute a piece of JavaScript in the frame.
423423
## win.evalNWBin(frame, path)
424424

425425
* `frame` `{HTMLIFrameElement}` the frame to execute in. If `iframe` is `null`, it assumes in current window / frame.
426-
* `path` `{String|ArrayBuffer|Buffer}` the path or `Buffer` or `ArrayBuffer` of the snapshot file generated by `nwjc`
426+
* `path` `{String|ArrayBuffer|Buffer}` the path or `Buffer` or `ArrayBuffer` of the binary file generated by `nwjc`
427427

428-
Load and execute the compiled snapshot in the frame. See [Protect JavaScript Source Code with V8 Snapshot](../For Users/Advanced/Protect JavaScript Source Code.md).
428+
Load and execute the compiled binary in the frame. See [Protect JavaScript Source Code](../For Users/Advanced/Protect JavaScript Source Code.md).
429429

430430
## Event: close
431431

0 commit comments

Comments
 (0)