Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
988307f6
...
988307f6cb6b6549356110445d133d655ca5a12a
authored
2011-12-30 15:07:58 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed missing file location information on syntax error on a required file
1 parent
ce868249
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
casperjs
casperjs
View file @
988307f
...
...
@@ -162,9 +162,10 @@ if (!phantom.casperLoaded) {
return requireCache[file].exports;
}
try {
new Function('module', 'exports', phantom.getScriptCode(file))(module, module.exports);
var scriptCode = phantom.getScriptCode(file);
new Function('module', 'exports', scriptCode)(module, module.exports);
} catch (e) {
phantom.processScriptError(e);
phantom.processScriptError(e
, file
);
}
requireCache[file] = module;
return module.exports;
...
...
Please
register
or
sign in
to post a comment