Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F5365728
test_property_ic_proto_guard.cjs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
382 B
Referenced Files
None
Subscribers
None
test_property_ic_proto_guard.cjs
View Options
const assert = require('assert');
const protoA = { marker: 11 };
const protoB = { marker: 29 };
function make(proto) {
return { __proto__: proto, own: 1 };
}
function marker(obj) {
return obj.marker;
}
for (let i = 0; i < 64; i++) {
assert.strictEqual(marker(make(protoA)), 11);
}
assert.strictEqual(marker(make(protoB)), 29);
console.log('property-ic-proto-guard:ok');
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sun, May 17, 5:49 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
554561
Default Alt Text
test_property_ic_proto_guard.cjs (382 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment