false positive assertion crash -- fixed

This commit is contained in:
Thakee Nathees 2022-04-06 19:08:07 +05:30
parent adcd7dce45
commit dfd1c5a612
6 changed files with 24 additions and 17 deletions

View File

@ -38,6 +38,10 @@ html {
scroll-padding-top: var(--navbar-height);
}
pre:first-line {
line-height: 0;
}
/*****************************************************************************/
/* BASIC LAYOUT STYLES */
/*****************************************************************************/

View File

@ -15,6 +15,14 @@
--fs-footer: 13px;
}
html {
scroll-padding-top: var(--navbar-height);
}
pre:first-line {
line-height: 0;
}
body {
background-color: #F6F8F8;
}
@ -26,10 +34,6 @@ p {
letter-spacing: .6px;
}
html {
scroll-padding-top: var(--navbar-height);
}
/*****************************************************************************/
/* BASIC LAYOUT */
/*****************************************************************************/

View File

@ -34,10 +34,6 @@
color: inherit;
}
pre:first-line {
line-height: 0;
}
code, code span,
.code, .code span {
font-family: var(--font-mono);

View File

@ -43,7 +43,6 @@ body {
#toolbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 30px;
color: white;
@ -52,6 +51,14 @@ body {
border-bottom: 2px solid var(--color-toolbar-border);
}
#code-example-titles {
white-space: nowrap;
color: var(--color-code-example-title);
overflow: hidden;
display: flex;
flex-grow: 1;
}
#run-button {
display: flex;
align-items: center;
@ -69,11 +76,6 @@ body {
color: var(--color-toolbar-bg);
}
#code-example-titles {
color: var(--color-code-example-title);
display: flex;
}
.code-example-title {
cursor: pointer;
padding: 20px 10px;
@ -140,6 +142,7 @@ body {
@media screen and (max-width: 995px) {
:root {
--fs-code-example-title: 10px;
--fs-editor: 14px;
}
#code-area {

View File

@ -49,7 +49,7 @@
<!-- The Code Editor. -->
<div id="code-area">
<div id="code-editor" class="code language-ruby"></div>
<p id="code-output" class="code"></p>
<pre id="code-output" class="code"></pre>
</div>
<script async type="text/javascript" src="{{ STATIC_DIR }}wasm/pocketlang.js"></script>

View File

@ -2894,7 +2894,7 @@ static void compileTopLevelStatement(Compiler* compiler) {
// At the top level the stack size should be 0, before and after compiling
// a top level statement, since there aren't any locals at the top level.
ASSERT(compiler->stack_size == 0, OOPS);
ASSERT(compiler->has_errors || compiler->stack_size == 0, OOPS);
if (match(compiler, TK_CLASS)) {
compileClass(compiler);
@ -2921,7 +2921,7 @@ static void compileTopLevelStatement(Compiler* compiler) {
// At the top level the stack size should be 0, before and after compiling
// a top level statement, since there aren't any locals at the top level.
ASSERT(compiler->stack_size == 0, OOPS);
ASSERT(compiler->has_errors || compiler->stack_size == 0, OOPS);
}