Skip to content

Feature Request: ES2015 Support to Match TypeScript 7 Minimum Target #692

@hejdb

Description

@hejdb

Hi, thanks for maintaining goja!

TypeScript 7 has raised its minimum supported output target to ES2015 (see microsoft/TypeScript#62196
). This means TS7 no longer emits ES5-compatible code, and modern TypeScript output now depends on ES2015 features such as:

class / extends

let / const

block scoping

Map, Set, Promise

iterators and for..of

default/rest parameters

Since goja implements ES5.1, TS7-generated code cannot run without an additional transpilation step or extensive polyfills.

Request

Would it be possible for goja to add ES2015 language and built-in support so that TypeScript 7+ output can run natively?

Even partial ES2015 support (classes, block scope, iterators, Promises, Maps/Sets, Symbols) would greatly improve compatibility with modern TypeScript and many common JS libraries.

Thanks again — goja is an amazing project, and ES2015 support would unlock many more use cases. Happy to help test if needed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions