Skip to content

Commit

Permalink
Merge pull request #29 from ruby/pr-d75558b3b9b97d5766f2f437b1fa9d3bd…
Browse files Browse the repository at this point in the history
…6c5e2a5

Use `target.[[Get]](key)` directly instead of `Reflect.get`
  • Loading branch information
kateinoigakukun committed Jul 2, 2022
2 parents 28b2c5b + 565b82c commit e5bcf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-wasm-wasi/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class RubyVM {
throw new Error("Function not implemented.");
},
reflectGet: function (target, propertyKey) {
return Reflect.get(target, propertyKey);
return target[propertyKey];
},
reflectGetOwnPropertyDescriptor: function (
target,
Expand Down

0 comments on commit e5bcf7c

Please sign in to comment.