endojs / Jessie

Tiny subset of JavaScript for ocap-safe universal mobile code
Apache License 2.0
281 stars 16 forks source link

Proposed whitelist additions #24

Closed michaelfig closed 5 years ago

michaelfig commented 5 years ago

Hi @erights, I'm suggesting the following additions for the Jessie whitelist.

String.prototype.split (without regexp support) and Array.join should be straightforward to implement, and help avoid onerous looping.

Array.isArray has no equivalent in Jessie.

Promise.prototype.catch is heavily used.

michaelfig commented 5 years ago

Also String.prototype.charCodeAt is necessary, especially for parsers.