You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letexports: any;exports.default=class{constructor(){// do nothing}}
Output:
"use strict";varexports;exports.default=/** @class */(function(){functiondefault(){// do nothing}returndefault;}());
Expected behavior:
The function name should be replaced when it might be invalid. In the above example, default is not a valid function name and function default() will throw an error in the browser.
The text was updated successfully, but these errors were encountered:
TypeScript 3.6.3
Playground link
Compiler Options:
Input:
Output:
Expected behavior:
The function name should be replaced when it might be invalid. In the above example,
default
is not a valid function name andfunction default()
will throw an error in the browser.The text was updated successfully, but these errors were encountered: