Skip to content

Commit

Permalink
Fixed strange [native code] bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jclasley committed Dec 11, 2020
1 parent 900f159 commit a4dfd9b
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 @@ -12,7 +12,7 @@ const compute = function(computedObj) {
const prop = props[0][0];
const cb = props[0][1].bind(source)
// set the source prop so it exists after execution, otherwise only exists on lookup
source[prop] = cb();
source[prop] = cb.call(source); // strange behavior if not called
let handler = {
get: function(target, property, receiver) {
if (property === prop) {
Expand Down

0 comments on commit a4dfd9b

Please sign in to comment.