Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
solkimicreb committed Mar 8, 2018
1 parent a180486 commit 48cb553
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/builtIns/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import collectionHandlers from './collections'

// eslint-disable-next-line
const globalObj = Function('return this')()

// built-in object can not be wrapped by Proxies
Expand Down
5 changes: 4 additions & 1 deletion src/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ function get (target, key, receiver) {
// do not violate the none-configurable none-writable prop get handler invariant
// fall back to none reactive mode in this case, instead of letting the Proxy throw a TypeError
const descriptor = Reflect.getOwnPropertyDescriptor(target, key)
if (!descriptor || !(descriptor.writable === false && descriptor.configurable === false)) {
if (
!descriptor ||
!(descriptor.writable === false && descriptor.configurable === false)
) {
return observable(result)
}
}
Expand Down

0 comments on commit 48cb553

Please sign in to comment.