This website requires JavaScript.
Explore
Help
Sign in
dmaax
/
ladybird
Watch
1
Star
0
Fork
You've already forked ladybird
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
7f538ea7eb
ladybird
/
Libraries
/
LibJS
/
Tests
/
switch-basic.js
11 lines
110 B
JavaScript
Raw
Normal View
History
Unescape
Escape
LibJS: Implement basic execution of "switch" statements The "break" keyword now unwinds to the nearest ScopeType::Breakable. There's no support for break labels yet, but we'll get there too.
2020-03-29 09:34:25 -03:00
switch
(
1
+
2
)
{
case
3
:
LibJS: Fix test files indentation (4 spaces)
2020-04-13 10:08:27 -03:00
console
.
log
(
"PASS"
)
;
break
;
LibJS: Implement basic execution of "switch" statements The "break" keyword now unwinds to the nearest ScopeType::Breakable. There's no support for break labels yet, but we'll get there too.
2020-03-29 09:34:25 -03:00
case
5
:
case
1
:
LibJS: Fix test files indentation (4 spaces)
2020-04-13 10:08:27 -03:00
break
;
LibJS: Implement basic execution of "switch" statements The "break" keyword now unwinds to the nearest ScopeType::Breakable. There's no support for break labels yet, but we'll get there too.
2020-03-29 09:34:25 -03:00
default
:
LibJS: Fix test files indentation (4 spaces)
2020-04-13 10:08:27 -03:00
break
;
LibJS: Implement basic execution of "switch" statements The "break" keyword now unwinds to the nearest ScopeType::Breakable. There's no support for break labels yet, but we'll get there too.
2020-03-29 09:34:25 -03:00
}
Reference in a new issue
Copy permalink