porffor 0.57.13 → 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/map.ts +18 -1
- package/compiler/builtins/weakmap.ts +18 -1
- package/compiler/builtins_precompiled.js +436 -412
- package/compiler/codegen.js +3 -0
- package/package.json +1 -1
- package/runtime/index.js +1 -1
- package/foo.js +0 -10
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