Skip to content

Commit

Permalink
#52 DYLD_FRAMEWORK_PATH string match for JSC Agent: removing top leve…
Browse files Browse the repository at this point in the history
…l webkit directory string match to avoid casing or rename mismatches
  • Loading branch information
Amal Hussein authored and rwaldron committed Mar 2, 2018
1 parent bbb8946 commit ddea357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/agents/jsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ class JSCAgent extends ConsoleAgent {
if (DYLD_FRAMEWORK_PATH === undefined) {
if (isSymlink.sync(this.hostPath)) {
let linked = fs.readlinkSync(this.hostPath);
if (linked.includes('WebKit/WebKitBuild')) {
if (linked.includes('/WebKitBuild/')) {
DYLD_FRAMEWORK_PATH = path.dirname(linked);
}
} else {
if (this.hostPath.includes('WebKit/WebKitBuild')) {
if (this.hostPath.includes('/WebKitBuild/')) {
DYLD_FRAMEWORK_PATH = path.dirname(this.hostPath);
}
}
Expand Down

0 comments on commit ddea357

Please sign in to comment.