Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
38 lines (33 loc) · 1.2 KB

File metadata and controls

38 lines (33 loc) · 1.2 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* @license
* Copyright 2020 The Emscripten Authors
* SPDX-License-Identifier: MIT
*/
#if MINIMAL_RUNTIME
// runtime_strings_extra.js defines a wrapper around TextDecoder, which is added
// in the generated code. The minimal runtime logic here actually runs the
// library code at compile time (as a way to create a library*.js file around
// non-library JS), and so we must define it here as well.
var TextDecoderWrapper = TextDecoder;
// TODO: stop including this in such a manner, and instead make it a normal
// library file in all modes.
#include "runtime_strings_extra.js"
#include "arrayUtils.js"
mergeInto(LibraryManager.library, {
$AsciiToString: AsciiToString,
$stringToAscii: stringToAscii,
$UTF16ToString: UTF16ToString,
$stringToUTF16: stringToUTF16,
$lengthBytesUTF16: lengthBytesUTF16,
$UTF32ToString: UTF32ToString,
$stringToUTF32: stringToUTF32,
$lengthBytesUTF32: lengthBytesUTF32,
$allocateUTF8: allocateUTF8,
$allocateUTF8OnStack: allocateUTF8OnStack,
$writeStringToMemory: writeStringToMemory,
$writeArrayToMemory: writeArrayToMemory,
$writeAsciiToMemory: writeAsciiToMemory,
$intArrayFromString: intArrayFromString,
$intArrayToString: intArrayToString
});
#endif
Morty Proxy This is a proxified and sanitized view of the page, visit original site.