porffor 0.57.14 → 0.57.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/builtins_precompiled.js +1 -1
- package/compiler/codegen.js +3 -0
- package/package.json +1 -1
- package/runtime/index.js +1 -1
- package/foo.js +0 -10
@@ -657,7 +657,7 @@ locals:[],localNames:["_this","_this#type","newLength","newLength#type"],
|
|
657
657
|
usesTag:1,
|
658
658
|
}
|
659
659
|
this.__Atomics_isLockFree = {
|
660
|
-
wasm:()=>[[32,0],[33,2],[65,1],[33,3],[2,64],[2,64],[2,64],[2,64],[2,64],[32,2],[68,1],[97],[13,0],[32,2],[68,2],[97],[13,1],[32,2],[68,4],[97],[13,2],[32,2],[68,8],[97],[13,3],[11],[11],[11],[11],[68,1],[15],[26],[11],[68,0],[15]],
|
660
|
+
wasm:()=>[[32,0],[33,2],[65,1],[33,3],[2,64],[2,64],[2,64],[2,64],[2,64],[2,64],[32,2],[68,1],[97],[13,0],[32,2],[68,2],[97],[13,1],[32,2],[68,4],[97],[13,2],[32,2],[68,8],[97],[13,3],[12,4],[11],[11],[11],[11],[68,1],[15],[26],[11],[11],[68,0],[15]],
|
661
661
|
params:[124,127],typedParams:1,returns:[124],returnType:2,
|
662
662
|
locals:[124,127],localNames:["x","x#type","#switch_82","#switch_82#type"],
|
663
663
|
}
|
package/compiler/codegen.js
CHANGED
@@ -5157,6 +5157,9 @@ const generateSwitch = (scope, decl) => {
|
|
5157
5157
|
if (defaultCase != -1) {
|
5158
5158
|
// move default case to last
|
5159
5159
|
cases.push(cases.splice(defaultCase, 1)[0]);
|
5160
|
+
} else {
|
5161
|
+
// make empty default case
|
5162
|
+
cases.push({ test: null, consequent: [] });
|
5160
5163
|
}
|
5161
5164
|
|
5162
5165
|
for (let i = 0; i < cases.length; i++) {
|
package/package.json
CHANGED
package/runtime/index.js
CHANGED