Replies: 1 comment 3 replies
|
Executing each file in turn with Execute is actually the intended approach — all scripts share the same global scope, so definitions from earlier scripts are available to later ones: Source information is preserved — errors will reference the correct file name and line numbers. Could you describe what problem you're running into with executing sequentially? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want something like
eng.Load(script1, "1.js"); eng.Load(script2, "2.js"); eng.Execute(something);I know I can just concat script1 and script2 and Execute that, but then I lose the source information ("1.js" etc). I'm missing something dumb here.
(I don't have control over the .js files content).
Right now I'm Executing each file in turn, but that's a problem.
All reactions