René's URL Explorer Experiment


Title: SyntaxError stack trace source maps · Issue #4 · nodejs/typescript · GitHub

Open Graph Title: SyntaxError stack trace source maps · Issue #4 · nodejs/typescript

X Title: SyntaxError stack trace source maps · Issue #4 · nodejs/typescript

Description: With nodejs/node#54283 (comment), when the source codes containing syntax errors (like yet to be supported ECMAScript syntaxes) are used with the flag --experimental-tranform-types, there is no time for --enable-source-maps to collect so...

Open Graph Description: With nodejs/node#54283 (comment), when the source codes containing syntax errors (like yet to be supported ECMAScript syntaxes) are used with the flag --experimental-tranform-types, there is no tim...

X Description: With nodejs/node#54283 (comment), when the source codes containing syntax errors (like yet to be supported ECMAScript syntaxes) are used with the flag --experimental-tranform-types, there is no tim...

Opengraph URL: https://github.com/nodejs/typescript/issues/4

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SyntaxError stack trace source maps","articleBody":"With https://github.com/nodejs/node/pull/54283#issuecomment-2283390708, when the source codes containing syntax errors (like yet to be supported ECMAScript syntaxes) are used with the flag `--experimental-tranform-types`, there is no time for `--enable-source-maps` to collect source maps and perform stack trace mapping, as it collect source maps information from V8 parse results.\r\n\r\n```ts\r\nconst obj = {\r\n  [Symbol.dispose]() {\r\n    console.log('disposed')\r\n  }\r\n}\r\n\r\nfunction foo() {\r\n  using _ = obj;\r\n}\r\n```\r\n\r\nFor example, if the following snippet is been parsed as JS, the error would be:\r\n\r\n```\r\nfile:///Users/cwu631/Developer/nodejs/node/a.mjs:8\r\n  using _ = obj;\r\n        ^\r\n\r\nSyntaxError: Unexpected identifier '_'\r\n    at compileSourceTextModule (node:internal/modules/esm/utils:337:16)\r\n    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)\r\n    at callTranslator (node:internal/modules/esm/loader:436:14)\r\n    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30)\r\n    at async ModuleJob._link (node:internal/modules/esm/module_job:106:19)\r\n\r\nNode.js v23.0.0-pre\r\n```\r\n\r\nHowever, if it is parsed as TS:\r\n\r\n```\r\n~/D/n/node (pr-54283)> ./node --experimental-transform-types a.mts\r\n(node:11541) ExperimentalWarning: Type Stripping is an experimental feature and might change at any time\r\n(Use `node --trace-warnings ...` to show where the warning was created)\r\nfile:///Users/cwu631/Developer/nodejs/node/a.mts:7\r\n    using _ = obj\r\n          ^\r\n\r\nSyntaxError: Unexpected identifier '_'\r\n    at compileSourceTextModule (node:internal/modules/esm/utils:337:16)\r\n    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)\r\n    at ModuleLoader.\u003canonymous> (node:internal/modules/esm/translators:540:10)\r\n    at callTranslator (node:internal/modules/esm/loader:436:14)\r\n    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30)\r\n    at async ModuleJob._link (node:internal/modules/esm/module_job:106:19)\r\n\r\nNode.js v23.0.0-pre\r\n```\r\n\r\nNote that the reported syntax error line number is 7, not 8 as expected.","author":{"url":"https://github.com/legendecas","@type":"Person","name":"legendecas"},"datePublished":"2024-08-12T08:56:35Z","url":"https://github.com/nodejs/typescript/issues/4"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:227c34ef-e828-1c2c-fb17-0420216ed63c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE400:2CAC94:680899:87858F:6AED2EE3
html-safe-nonceeff9fb5b66eeef5b0eaac88b8d910876370ab4b5f588abc11b761217f93af024
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDAwOjJDQUM5NDo2ODA4OTk6ODc4NThGOjZBRUQyRUUzIiwidmlzaXRvcl9pZCI6IjkxNjk2MDg0MDI1NDE1NTU0MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacda53287dee9663a3c647412e87f1eb9c4b771223c523c651d4c3c683cfa10504
hovercard-subject-tagissue:2460412077
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/typescript/4/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5eb259a26047b4037d72ad7bc409764ff1d4cd02ed268063720ba40b88ecf40f/nodejs/typescript/issues/4
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5eb259a26047b4037d72ad7bc409764ff1d4cd02ed268063720ba40b88ecf40f/nodejs/typescript/issues/4
og:image:altWith nodejs/node#54283 (comment), when the source codes containing syntax errors (like yet to be supported ECMAScript syntaxes) are used with the flag --experimental-tranform-types, there is no tim...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelegendecas
hostnamegithub.com
expected-hostnamegithub.com
Nonee51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a
turbo-cache-controlno-preview
go-importgithub.com/nodejs/typescript git https://github.com/nodejs/typescript.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id835214564
octolytics-dimension-repository_nwonodejs/typescript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id835214564
octolytics-dimension-repository_network_root_nwonodejs/typescript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ebb7b901cc154ecc179a44f266fcf69f343b30
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/typescript/issues/4#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Ftypescript%2Fissues%2F4
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Ftypescript%2Fissues%2F4
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Ftypescript
Reloadhttps://github.com/nodejs/typescript/issues/4
Reloadhttps://github.com/nodejs/typescript/issues/4
Reloadhttps://github.com/nodejs/typescript/issues/4
nodejshttps://github.com/nodejs
typescripthttps://github.com/nodejs/typescript
Codehttps://github.com/nodejs/typescript
Issues3 (3)https://github.com/nodejs/typescript/issues
Pull requestshttps://github.com/nodejs/typescript/pulls
Actionshttps://github.com/nodejs/typescript/actions
Security and qualityhttps://github.com/nodejs/typescript/security
Insightshttps://github.com/nodejs/typescript/pulse
https://github.com/nodejs/typescript
New issuehttps://github.com/login?return_to=https://github.com/nodejs/typescript/issues/4
New issuehttps://github.com/login?return_to=https://github.com/nodejs/typescript/issues/4
SyntaxError stack trace source mapshttps://github.com/nodejs/typescript/issues/4#top
https://github.com/legendecas
legendecashttps://github.com/legendecas
on Aug 12, 2024https://github.com/nodejs/typescript/issues/4#issue-2460412077
nodejs/node#54283 (comment)https://github.com/nodejs/node/pull/54283#issuecomment-2283390708
https://github.com/marco-ippolito
marco-ippolitohttps://github.com/marco-ippolito
on Aug 12, 2024https://github.com/nodejs/typescript/issues/4#issuecomment-2283552613
https://github.com/legendecas
legendecashttps://github.com/legendecas
on Aug 12, 2024https://github.com/nodejs/typescript/issues/4#issuecomment-2283604927
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/typescript/issues/4
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/typescript/issues/4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.