Closed as not planned
Description
Check for duplicates
- I have searched for similar issues before opening a new one.
Description
Starting in Blockly 12.0.0-beta.6
, using built-in fields like FieldNumber
or FieldTextInput
can result in a RangeError: Maximum call stack size exceeded
.
This is caused by the the introduction of an accessor in the FieldInput class (#9011). While the code looks correct, when compiled with common tools (e.g. Webpack/Babel), the call to super.size_ = ...
is sometimes transpiled to this.size_ = ...
, causing infinite recursion at runtime. This affects any project that uses FieldNumber
, FieldTextInput
, or other FieldInput
subclasses.
This is a bundler-sensitive issue triggered by the recent introduction of an accessor for size_
.
Reproduction steps
- Use 12.0.0-beta.6
- Add any block with a
FieldNumber
orFieldTextInput
Stack trace
ncaught RangeError: Maximum call stack size exceeded
at _class4.set (field_input.ts:109:5)
at _class4.set (field_input.ts:109:5)
at _class4.set (field_input.ts:109:5)
at _class4.set (field_input.ts:109:5)
at _class4.set (field_input.ts:109:5)
at _class4.set (field_input.ts:109:5)
at _class4.set (field_input.ts:109:5)
at _class4.set (field_input.ts:109:5)
at _class4.set (field_input.ts:109:5)
at _class4.set (field_input.ts:109:5)
Screenshots
Browsers
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Done