Feature Compatibility

As GJS' underlying JavaScript engine, SpiderMonkey, has been upgraded and new GNOME stack integrations have been improved, various features have been both deprecated and added. This chart is a working guide of what features are usable on different versions of GJS

Alpha/Early1.44.x-1.46.x1.48.x1.50.x1.52.x
SpiderMonkey Version?24385252
Classes
Lang.Interface✔️✔️⚠️⚠️
Lang.Class✔️✔️✔️⚠️⚠️
ES6 Classes✔️✔️
Strings
String.prototype.contains✔️✔️✔️
String.prototype.includes✔️✔️
String.prototype.padStart✔️✔️
String.prototype.padStart✔️✔️
String Templates✔️✔️✔️
Objects
Object.values()✔️✔️
Arrays
Array.prototype.includes()✔️✔️