You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,12 @@ Box.js will emulate a Windows JScript environment, print a summary of the emulat
46
46
47
47
>If you wish to automate the analysis, you can use the return codes - documented in `integrations/README.md` - to distinguish between different types of errors.
48
48
49
-
## Analysis Fails Due to Missing 'document' Object
49
+
## Analysis Fails Due to Missing 'document' Object or Other Objects/Functions
50
50
51
51
The box-js repository from git includes a `boilerplate.js` file. This file defines some stubbed versions of common browser objects such as document. Try rerunning your analysis with the `--prepended-code=DIR/boilerplate.js` option, where `DIR` is the directory of the cloned box-js repository. The `--prepended-code` option tells box-js to prepend the JavaScript in the given file to the sample being analyzed.
52
52
53
+
Note that you can copy boilerplate.js and add your own stubbed classes, objects, etc. as needed.
54
+
53
55
## Batch usage
54
56
55
57
While box.js is typically used on single files, it can also run batch analyses. You can simply pass a list of files or folders to analyse:
0 commit comments