| 1 |
// This externs format needs to be a little different due to the fact we don't rename |
| 2 |
// Module to CanvasKit in quite the same way. |
| 3 |
Module.sayHello = function() {}; |
| 4 |
Module.publicFunction = function() {}; |
| 5 |
Module.publicExtension = function() {}; |
| 6 |
Module.withObject = function() {}; |
| 7 |
Module._privateFunction = function() {}; |
| 8 |
Module._privateExtension = function() {}; |
| 9 |
Module._withObject = function() {}; |
| 10 |
|
| 11 |
Module.Something = { |
| 12 |
getName: function() {}, |
| 13 |
prototype: { |
| 14 |
setName: function() {}, |
| 15 |
}, |
| 16 |
_setName: function() {}, |
| 17 |
}; |
| 18 |
|
| 19 |
Module.CompoundObj = { |
| 20 |
alpha: 0, |
| 21 |
beta: "", |
| 22 |
gamma: 0, |
| 23 |
}; |
| 24 |
|
| 25 |
// Things provided by Emscripten that we don't want minified. |
| 26 |
Module.onRuntimeInitialized = function() {}; |
| 27 |
Module._malloc = function() {}; |
| 28 |
Module._free = function() {}; |