mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Do hasOwnProperty check first
This commit is contained in:
committed by
Kevin Sawicki
parent
5981cfb8c9
commit
f523c5eb73
@@ -12,10 +12,10 @@ getCachedModulePath = (relative, parent) ->
|
||||
return unless relative
|
||||
return unless parent?.id
|
||||
|
||||
return if nativeModules.hasOwnProperty(relative)
|
||||
return if relative[0] is '.'
|
||||
return if relative[relative.length - 1] is '/'
|
||||
return if fs.isAbsolute(relative)
|
||||
return if nativeModules.hasOwnProperty(relative)
|
||||
|
||||
console.log "looking up #{relative} from #{parent.id}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user