PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

/js/src/jit-test/tests/jaeger/tableSwitchEmpty.js

http://github.com/zpao/v8monkey
JavaScript | 14 lines | 11 code | 3 blank | 0 comment | 0 complexity | 6a8cde4f0b30571ac901cea2a8bf8fc5 MD5 | raw file
 1
 2function f(a) {
 3    switch(a) {
 4    }
 5    switch(a) {
 6        default: return 0;
 7    }
 8    assertEq(0, 1);
 9}
10
11assertEq(f(), 0);
12assertEq(f(0), 0);
13assertEq(f(1.1), 0);
14