Skip to content

Commit

Permalink
fix: any falsey return value of set handler
Browse files Browse the repository at this point in the history
  • Loading branch information
dbo committed Nov 16, 2016
1 parent ae525f4 commit 8c37694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
throw new TypeError("Setting property on revoked proxy: " + key);
}
if (pdef.h.set) {
if (pdef.h.set(pdef.t, key, value, this) === false) {
if (!pdef.h.set(pdef.t, key, value, this)) {
// assuming strict mode
throw new TypeError("Setting " + key + " on " + pdef.t + " has failed.");
}
Expand Down

0 comments on commit 8c37694

Please sign in to comment.