MCPcopy
hub / github.com/evanw/esbuild / check

Function check

scripts/js-api-tests.js:7378–7379  ·  view source on GitHub ↗
(target, input, expected)

Source from the content-addressed store, hash-verified

7376
7377 async propertyAccessBugWorkaroundForWebKit({ esbuild }) {
7378 const check = async (target, input, expected) =>
7379 assert.strictEqual((await esbuild.transform(input, { target })).code, expected)
7380 await Promise.all([
7381 check('safari16.2', `x(class{}.y=z)`, `x((class {\n}).y = z);\n`),
7382 check('safari16.3', `x(class{}.y=z)`, `x(class {\n}.y = z);\n`),

Callers 10

multipleEngineTargetsFunction · 0.70
supportedFunction · 0.70
regExpFeaturesFunction · 0.70
onstdoutFunction · 0.70
onstderrFunction · 0.70
TestFormatMessagesFunction · 0.50
TestCompareVersionsFunction · 0.50
TestMangleInlineLocalsFunction · 0.50
TestEncodeDataURLFunction · 0.50

Calls 1

transformMethod · 0.80

Tested by 4

TestFormatMessagesFunction · 0.40
TestCompareVersionsFunction · 0.40
TestMangleInlineLocalsFunction · 0.40
TestEncodeDataURLFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…