This website requires JavaScript.
Explore
Help
Sign in
Stowage
/
ladybird
Watch
2
Star
0
Fork
You've already forked ladybird
0
mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced
2025-11-06 16:20:58 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
92a9fe0e49
ladybird
/
Libraries
/
LibJS
/
Tests
/
switch-basic-2.js
11 lines
117 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 14:34:25 +02:00
var
a
=
"foo"
;
switch
(
a
+
"bar"
)
{
case
1
:
LibJS: Fix test files indentation (4 spaces)
2020-04-13 14:08:27 +01: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 14:34:25 +02:00
case
"foobar"
:
case
2
:
LibJS: Fix test files indentation (4 spaces)
2020-04-13 14:08:27 +01: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 14:34:25 +02:00
}
Reference in a new issue
Copy permalink