boa icon indicating copy to clipboard operation
boa copied to clipboard

Uncaught TypeError when calling method on global object

Open lupd opened this issue 3 years ago • 0 comments

Calling a method of the global object (using this/ globalThis) results in a TypeError.

To Reproduce This JavaScript code reproduces the issue:

this.hasOwnProperty("length")

Expected behavior true is printed

Actual behavior Uncaught "TypeError": "not a callable function" is printed.

Additional context At least one test in the test suite requires the expected behavior above.

lupd avatar Mar 29 '22 23:03 lupd