Title: Emitted__exportStar helper has missing ; which causes runtime error · Issue #38501 · microsoft/TypeScript · GitHub
Open Graph Title: Emitted__exportStar helper has missing ; which causes runtime error · Issue #38501 · microsoft/TypeScript
X Title: Emitted__exportStar helper has missing ; which causes runtime error · Issue #38501 · microsoft/TypeScript
Description: TypeScript Version: 3.9.1-rc Search Terms: __exportStar export star Code Input export * from './test'; Output var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k;...
Open Graph Description: TypeScript Version: 3.9.1-rc Search Terms: __exportStar export star Code Input export * from './test'; Output var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m...
X Description: TypeScript Version: 3.9.1-rc Search Terms: __exportStar export star Code Input export * from './test'; Output var __createBinding = (this && this.__createBinding) || (Object.create ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/38501
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Emitted__exportStar helper has missing ; which causes runtime error","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:** 3.9.1-rc\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\n__exportStar\r\nexport star\r\n\r\n**Code**\r\nInput\r\n```ts\r\nexport * from './test';\r\n```\r\n\r\nOutput\r\n```js\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n} /* There is a missing semi-colon here */\r\n(function (factory) {\r\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n var v = factory(require, exports);\r\n if (v !== undefined) module.exports = v;\r\n }\r\n else if (typeof define === \"function\" && define.amd) {\r\n define([\"require\", \"exports\", \"./test\"], factory);\r\n }\r\n})(function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n __exportStar(require(\"./test\"), exports);\r\n});\r\n\r\n\r\n```\r\nWhen module target is configured UMD and helpers are emitted. The `__exportStar` unnamed function declaration has a missing `;`, which causes an error during runtime `Uncaught TypeError: (intermediate value)(…) is not a function`\r\n\r\n**Expected behavior:**\r\nA semi-colon is added after the unnamed `__exportStar` function declaration.\r\n**Actual behavior:**\r\nA semi-colon is missing from the output which cause a runtime error.\r\n\r\n**Playground Link:** https://www.typescriptlang.org/play/?module=3&ts=4.0.0-dev.20200511&ssl=2&ssc=18&pln=2&pc=1#code/KYDwDg9gTgLgBAKjgMyhAtnA5AOgPQzADOMWA3AFBA\r\n","author":{"url":"https://github.com/alan-agius4","@type":"Person","name":"alan-agius4"},"datePublished":"2020-05-12T10:02:41Z","url":"https://github.com/microsoft/TypeScript/issues/38501"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fc2a269f-348c-4c05-04e5-58ece1cee814 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 958C:785A9:1B7BA69:22D60AC:6B0151F2 |
| html-safe-nonce | 56227c0899d9c598f54a909ea42b4e3cf815947db6402c646152f891e15fbea0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NThDOjc4NUE5OjFCN0JBNjk6MjJENjBBQzo2QjAxNTFGMiIsInZpc2l0b3JfaWQiOiIxMjExODk1NTczNDk0NDUyNzIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fedceed5e594b158553c7ad9b45fd4c85d1e001b0a247ef22cba55897b71877a |
| hovercard-subject-tag | issue:616527416 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/38501/issue_layout |
| twitter:image | https://opengraph.githubassets.com/851795e7fa0b63c31c7c90a4d50dd4f9590a217c96d39a6a69b3024d9f177d65/microsoft/TypeScript/issues/38501 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/851795e7fa0b63c31c7c90a4d50dd4f9590a217c96d39a6a69b3024d9f177d65/microsoft/TypeScript/issues/38501 |
| og:image:alt | TypeScript Version: 3.9.1-rc Search Terms: __exportStar export star Code Input export * from './test'; Output var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alan-agius4 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width