GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: adapt to new JSON SyntaxError messages · nodejs/node@71c193e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/es-module
    • test-esm-data-urls.js
    • test-esm-invalid-pjson.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/es-module/test-esm-data-urls.js‎

Copy file name to clipboardExpand all lines: test/es-module/test-esm-data-urls.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function createBase64URL(mime, body) {
7676
import('data:application/json;foo="test,",0',
7777
{ assert: { type: 'json' } }), {
7878
name: 'SyntaxError',
79-
message: /Unexpected end of JSON input/
79+
message: /Unterminated string in JSON at position 3/
8080
});
8181
}
8282
{
Collapse file

‎test/es-module/test-esm-invalid-pjson.js‎

Copy file name to clipboardExpand all lines: test/es-module/test-esm-invalid-pjson.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ describe('ESM: Package.json', { concurrency: true }, () => {
1818
stderr.includes(
1919
`[ERR_INVALID_PACKAGE_CONFIG]: Invalid package config ${invalidJson} ` +
2020
`while importing "invalid-pjson" from ${entry}. ` +
21-
`Unexpected token } in JSON at position ${12 + checkoutEOL.length * 2}`
21+
"Expected ':' after property name in JSON at position " +
22+
`${12 + checkoutEOL.length * 2}`
2223
),
2324
stderr
2425
);

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.