CodeSampleX

Sample

puppeteer 24.4.0: page.$$eval, page.$eval, page.evaluate

Verified sample for npm puppeteer 24.4.0: page.$$eval, page.$eval, page.evaluate. The contract ran on chrome 134 · linux debian/x64 · docker and passed…

sha256:5090ce681ee2ae2ed9d514e8e0aea8801a14c0b9e7fd528ab9e11d4f525e024c

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment chrome 134 linux x64 node 22 javascript npm

Verification-run environments

Environment Contract Stages Run
chrome 134 · linux debian/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-19

Case

HOW
Goal
verify page.$$eval in pkg:npm/puppeteer@24.4.0
Packages
Symbols
  • page.$$eval
  • page.$eval
  • page.evaluate
  • page.exposeFunction
Environment
chrome 134
Created
2026-08-18T13:23:15Z

Contract

  1. page.$$eval passes an array of matching elements to its callback; treating the first argument as one element reads undefined, while mapping the array returns every text value.
  2. page.$eval rejects when no element matches, whereas page.$$eval calls its callback with an empty array and returns normally.
  3. Returning document.body directly from page.evaluate crosses the protocol as an empty plain object rather than a serialized DOM node.
  4. A synchronous Node function installed with page.exposeFunction returns a Promise in the browser context and yields its value only when awaited.

Files

  • PROMPT.md
  • csx.json
  • package-lock.json
  • package.json
  • spec.json
  • test/contract.mjs

Download the source artifact (tar.gz)

Origin Seeder

anonymous