Skip to content

Commit e87de8c

Browse files
committed
minor update
1 parent 07d62e2 commit e87de8c

File tree

4 files changed

+17
-28
lines changed

4 files changed

+17
-28
lines changed

test/testPluginMini/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# source emsdk_set_env.sh
33

44

5-
emcc --bind -s MODULARIZE=1 test2.cpp -o test2.js
6-
emcc --bind -s MODULARIZE=1 test1.cpp -o test1.js
5+
emcc --bind test2.cpp -o test2.js
6+
emcc --bind test1.cpp -o test1.js

test/testPluginMini/index.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,24 @@
3838
</head>
3939
<body>
4040
<textarea id="output" rows="8"></textarea><br>
41-
<button id='testbutton'>Test!</button>
41+
<button id='testbutton1'>Test1!</button>
42+
<button id='testbutton2'>Test2!</button>
4243
<script src="test1.js"></script>
44+
<script src="test2.js"></script>
4345
<script>
4446
//
45-
// document.getElementById("testbutton").addEventListener('click', function (){
46-
47+
document.getElementById("testbutton1").addEventListener('click', function (){
4748
// var com = new Module.Common();
48-
49-
console.log("testbutton");
49+
console.log("testbutton1");
5050
var t1 = new Module.Test1();
5151
console.log(t1.generate1());
52-
// });
53-
</script>
54-
<script src="test2.js"></script>
55-
<script>
52+
});
53+
54+
document.getElementById("testbutton2").addEventListener('click', function (){
55+
console.log("testbutton1");
5656
var t2 = new Module.Test2();
57-
console.log(t2.generate2());
57+
console.log(t2.generate2());
58+
});
5859
</script>
5960
</body>
6061
</html>

test/testPluginMini/test1.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
var Module = function(Module) {
2-
Module = Module || {};
3-
41
// The Module object: Our interface to the outside world. We import
52
// and export values on it, and do the work to get that through
63
// closure compiler if necessary. There are various ways Module can be used:
@@ -14477,6 +14474,3 @@ run();
1447714474

1447814475

1447914476

14480-
14481-
return Module;
14482-
};

test/testPluginMini/test2.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
var Module = function(Module) {
2-
Module = Module || {};
3-
41
// The Module object: Our interface to the outside world. We import
52
// and export values on it, and do the work to get that through
63
// closure compiler if necessary. There are various ways Module can be used:
@@ -10148,7 +10145,7 @@ function __ZNK10__cxxabiv121__vmi_class_type_info16search_below_dstEPNS_19__dyna
1014810145
$30 = (($this) + 8|0);
1014910146
$31 = (($info) + 24|0);
1015010147
$does_dst_type_point_to_our_static_type$0$off0 = 0;$is_dst_type_derived_from_static_type$0$off0 = 0;$p$0 = $23;
10151-
L37: while(1) {
10148+
L34: while(1) {
1015210149
$32 = ($p$0>>>0)<($26>>>0);
1015310150
if (!($32)) {
1015410151
$does_dst_type_point_to_our_static_type$0$off0$lcssa = $does_dst_type_point_to_our_static_type$0$off0;$is_dst_type_derived_from_static_type$2$off0 = $is_dst_type_derived_from_static_type$0$off0;
@@ -10180,7 +10177,7 @@ function __ZNK10__cxxabiv121__vmi_class_type_info16search_below_dstEPNS_19__dyna
1018010177
if ($46) {
1018110178
$does_dst_type_point_to_our_static_type$0$off0$lcssa = $does_dst_type_point_to_our_static_type$0$off0;$is_dst_type_derived_from_static_type$2$off0 = 1;
1018210179
label = 20;
10183-
break L37;
10180+
break L34;
1018410181
} else {
1018510182
$does_dst_type_point_to_our_static_type$1$off0 = $does_dst_type_point_to_our_static_type$0$off0;$is_dst_type_derived_from_static_type$1$off0 = 1;
1018610183
break;
@@ -10190,14 +10187,14 @@ function __ZNK10__cxxabiv121__vmi_class_type_info16search_below_dstEPNS_19__dyna
1019010187
$40 = ($39|0)==(1);
1019110188
if ($40) {
1019210189
label = 25;
10193-
break L37;
10190+
break L34;
1019410191
}
1019510192
$41 = HEAP32[$30>>2]|0;
1019610193
$42 = $41 & 2;
1019710194
$43 = ($42|0)==(0);
1019810195
if ($43) {
1019910196
label = 25;
10200-
break L37;
10197+
break L34;
1020110198
} else {
1020210199
$does_dst_type_point_to_our_static_type$1$off0 = 1;$is_dst_type_derived_from_static_type$1$off0 = 1;
1020310200
}
@@ -14477,6 +14474,3 @@ run();
1447714474

1447814475

1447914476

14480-
14481-
return Module;
14482-
};

0 commit comments

Comments
 (0)