File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
site/source/docs/tools_reference Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2695,8 +2695,10 @@ TEXTDECODER
2695
2695
If enabled, use the JavaScript TextDecoder API for string marshalling.
2696
2696
Enabled by default, set this to 0 to disable.
2697
2697
If set to 2, we assume TextDecoder is present and usable, and do not emit
2698
- any JS code to fall back if it is missing. In single threaded -Oz build modes,
2699
- TEXTDECODER defaults to value == 2 to save code size.
2698
+ any JS code to fall back if it is missing.
2699
+ Note: In -Oz builds, the default value of TEXTDECODER is set to 2, to save on
2700
+ code size (except when AUDIO_WORKLET is specified, or when `shell ` is part
2701
+ of ENVIRONMENT since TextDecoder is not available in those environments).
2700
2702
2701
2703
Default value: 1
2702
2704
Original file line number Diff line number Diff line change @@ -1772,8 +1772,10 @@ var EVAL_CTORS = 0;
1772
1772
// If enabled, use the JavaScript TextDecoder API for string marshalling.
1773
1773
// Enabled by default, set this to 0 to disable.
1774
1774
// If set to 2, we assume TextDecoder is present and usable, and do not emit
1775
- // any JS code to fall back if it is missing. In single threaded -Oz build modes,
1776
- // TEXTDECODER defaults to value == 2 to save code size.
1775
+ // any JS code to fall back if it is missing.
1776
+ // Note: In -Oz builds, the default value of TEXTDECODER is set to 2, to save on
1777
+ // code size (except when AUDIO_WORKLET is specified, or when `shell` is part
1778
+ // of ENVIRONMENT since TextDecoder is not available in those environments).
1777
1779
// [link]
1778
1780
var TEXTDECODER = 1 ;
1779
1781
You can’t perform that action at this time.
0 commit comments