Skip to content

Commit e5bcf7c

Browse files
Merge pull request #29 from ruby/pr-d75558b3b9b97d5766f2f437b1fa9d3bd6c5e2a5
Use `target.[[Get]](key)` directly instead of `Reflect.get`
2 parents 28b2c5b + 565b82c commit e5bcf7c

File tree

1 file changed

+1
-1
lines changed
  • packages/npm-packages/ruby-wasm-wasi/src

1 file changed

+1
-1
lines changed

packages/npm-packages/ruby-wasm-wasi/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class RubyVM {
139139
throw new Error("Function not implemented.");
140140
},
141141
reflectGet: function (target, propertyKey) {
142-
return Reflect.get(target, propertyKey);
142+
return target[propertyKey];
143143
},
144144
reflectGetOwnPropertyDescriptor: function (
145145
target,

0 commit comments

Comments
 (0)