CodeSampleX

Sample

Instantiating CanvasTexture marks it immediately for update with version 1, while reading needsUpdate yields undefined because needsUpdate is a setter-only property that increments version counters.

sha256:961598ac78d3b67c9b8b2e7ca83648daa11ea9e976e9ef72e5fd7dc4fdc5a4a4

PUBLISHED L3_CONTRACT_PASS MIT-0

Execution evidence

Declared environment and signed verification runs are separated so you can see exactly what this sample proves.

Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS

Declared environment

Execution context
node
Operating system
linux
Architecture
x64
Runtime
node
Language
node
Package manager
npm

Verification-run environments

Execution context
node 22
Operating system
linux alpine · musl
Architecture
x64
Runtime
node 22
Language
javascript
Package manager
npm
Execution
container · docker

CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17

Case

Goal
Instantiating CanvasTexture marks it immediately for update with version 1, while reading needsUpdate yields undefined because needsUpdate is a setter-only property that increments version counters. HOW
Packages
three 0.185.1
Environment
node
Created
2026-08-17T09:04:47Z

Commonly assumed

CanvasTexture initializes with version 0 like Texture, and reading needsUpdate returns a boolean indicating whether the texture is flagged for update.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the source artifact (tar.gz)

Origin Seeder

csx-seed

Verification receipts