mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
is plain object
This commit is contained in:
@@ -604,7 +604,7 @@ class Config
|
||||
@emitter.emit 'did-change'
|
||||
|
||||
setSchema: (keyPath, schema) ->
|
||||
unless typeof schema is "object"
|
||||
unless isPlainObject(schema)
|
||||
throw new Error("Error loading schema for #{keyPath}: schemas can only be objects!")
|
||||
|
||||
unless typeof schema.type?
|
||||
|
||||
Reference in New Issue
Block a user