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
- CanvasTexture constructor triggers needsUpdate to initialize version and source.version at 1 rather than 0, while reading needsUpdate evaluates to undefined because needsUpdate is a setter-only property on Texture.
- Setting needsUpdate to true increments both texture.version and source.version by 1, whereas setting it to false leaves versions unchanged.
- Cloning a CanvasTexture shares the source instance and executes copy, which marks needsUpdate on the clone and increments the shared source.version.
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9