Discuss Scratch

mlcreater
Scratcher
1000+ posts

My Block input named __proto__ is always 0

My browser / operating system: ChromeOS 14541.0.0, Chrome 114.0.0.0, No Flash version detected
If I make this block:
define test [__proto__]
say (__proto__)
and run:
test [abc] :: custom // string, should say "abc"
test ((1) * (1)) :: custom // number, should say "1"
test <not <>> :: custom // boolean, should say "true"
or
test (user id :: sensing) :: custom // ???, should say "undefined"
the sprite always says 0
CST1229
Scratcher
1000+ posts

My Block input named __proto__ is always 0

Can reproduce. My browser / operating system: Windows NT 10.0, Firefox 116.0, No Flash versions detected



mlcreater wrote:

(#1)
test (user id :: sensing) :: custom // ???, should say "undefined"
The user ID block returns undefined.

Last edited by CST1229 (July 15, 2023 14:20:43)

NotK3ndricAlt
Scratcher
1000+ posts

My Block input named __proto__ is always 0

Can replicate. My browser / operating system: Android Linux 9, Chrome 112.0.5615.197, No Flash version detected
define test (__proto__)
say (__proto__)

test [abcd]
undeterminstic
Scratcher
1000+ posts

My Block input named __proto__ is always 0

I think it has to do with the fact the __proto__ is used in JS

Powered by DjangoBB