escalier-lang / escalier

A compile-to-JavaScript language with tight TypeScript integration.
https://escalier-lang.github.io/escalier/
MIT License
21 stars 1 forks source link

Allow Object.prototype methods to be called on objects #641

Open kevinbarabash opened 1 year ago

kevinbarabash commented 1 year ago

e.g.

let p = {x: 5, y: 10};
let str = p.toString();

This will require special casing in expand_type and expand_keyof similar to what we do for Array.