Skip to content

Perhaps there is an incorrect test directive in useStrictLikePrologueString01 #64198

Description

@bvanjoi

Acknowledgement

  • I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

Comment

In tsc/testdata/tests/cases/compiler/useStrictLikePrologueString01.ts:

//@target: commonjs
//~~~~~~~~~~~~~~  The real meaning here may be `@module: commonjs`
//@target: es5, es2015

"hey!"
" use strict "
export function f() {   
}

Activity

  1. RyanCavanaugh commented on Sep 8, 2026

    @RyanCavanaugh
    Member

    It's weird the harness didn't error on this - it really should! I doubt this is the only mistake like this we've made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

InfrastructureIssue relates to TypeScript team infrastructure

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions