Comments (4)
!nim js
case 0
else: discard
from nim.
🐧 Linux bisect by @juancarlospaco (collaborator)
devel 👎 FAIL
Output
IR
Compiled filesize401 bytes (401 bytes)
var framePtr = null;
var excHandler = 0;
var lastJSError = null;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
else{
}
framePtr = F.prev;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
framePtr = F.prev;
Stats
- Started
2024-08-29T20:36:32
- Finished
2024-08-29T20:36:33
- Duration
AST
nnkStmtList.newTree(
nnkCaseStmt.newTree(
newLit(0),
nnkElse.newTree(
nnkStmtList.newTree(
nnkDiscardStmt.newTree(
newEmptyNode()
)
)
)
)
)
stable 👎 FAIL
Output
IR
Compiled filesize400 bytes (400 bytes)
var framePtr = null;
var excHandler = 0;
var lastJSError = null;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
else{
}
framePtr = F.prev;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
framePtr = F.prev;
Stats
- Started
2024-08-29T20:36:36
- Finished
2024-08-29T20:36:37
- Duration
AST
nnkStmtList.newTree(
nnkCaseStmt.newTree(
newLit(0),
nnkElse.newTree(
nnkStmtList.newTree(
nnkDiscardStmt.newTree(
newEmptyNode()
)
)
)
)
)
2.0.8 👎 FAIL
Output
IR
Compiled filesize400 bytes (400 bytes)
var framePtr = null;
var excHandler = 0;
var lastJSError = null;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
else{
}
framePtr = F.prev;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
framePtr = F.prev;
Stats
- Started
2024-08-29T20:36:37
- Finished
2024-08-29T20:36:37
- Duration
AST
nnkStmtList.newTree(
nnkCaseStmt.newTree(
newLit(0),
nnkElse.newTree(
nnkStmtList.newTree(
nnkDiscardStmt.newTree(
newEmptyNode()
)
)
)
)
)
2.0.0 👎 FAIL
Output
IR
Compiled filesize400 bytes (400 bytes)
var framePtr = null;
var excHandler = 0;
var lastJSError = null;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
else{
}
framePtr = F.prev;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
framePtr = F.prev;
Stats
- Started
2024-08-29T20:36:40
- Finished
2024-08-29T20:36:41
- Duration
AST
nnkStmtList.newTree(
nnkCaseStmt.newTree(
newLit(0),
nnkElse.newTree(
nnkStmtList.newTree(
nnkDiscardStmt.newTree(
newEmptyNode()
)
)
)
)
)
1.6.20 👍 OK
Output
IR
Compiled filesize566 bytes (566 bytes)
var framePtr = null;
var excHandler = 0;
var lastJSError = null;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
switch (0) {
default:
break;
}
framePtr = F.prev;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
framePtr = F.prev;
var F = {procname: "module temp", prev: framePtr, filename: "/home/runner/work/Nim/Nim/temp.nim", line: 0};
framePtr = F;
framePtr = F.prev;
Stats
- Started
2024-08-29T20:36:43
- Finished
2024-08-29T20:36:44
- Duration
1.4.8 👍 OK
Output
IR
Compiled filesize538 bytes (538 bytes)
var framePtr = null;
var excHandler = 0;
var lastJSError = null;
var F={procname:"module temp",prev:framePtr,filename:"/home/runner/work/Nim/Nim/temp.nim",line:0};
framePtr = F;
switch (0) {
default:
break;
}
framePtr = F.prev;
var F={procname:"module temp",prev:framePtr,filename:"/home/runner/work/Nim/Nim/temp.nim",line:0};
framePtr = F;
framePtr = F.prev;
var F={procname:"module temp",prev:framePtr,filename:"/home/runner/work/Nim/Nim/temp.nim",line:0};
framePtr = F;
framePtr = F.prev;
Stats
- Started
2024-08-29T20:36:46
- Finished
2024-08-29T20:36:46
- Duration
1.2.18 👍 OK
Output
IR
Compiled filesize807 bytes (807 bytes)
var framePtr = null;
var excHandler = 0;
var lastJSError = null;
if (typeof Int8Array === 'undefined') Int8Array = Array;
if (typeof Int16Array === 'undefined') Int16Array = Array;
if (typeof Int32Array === 'undefined') Int32Array = Array;
if (typeof Uint8Array === 'undefined') Uint8Array = Array;
if (typeof Uint16Array === 'undefined') Uint16Array = Array;
if (typeof Uint32Array === 'undefined') Uint32Array = Array;
if (typeof Float32Array === 'undefined') Float32Array = Array;
if (typeof Float64Array === 'undefined') Float64Array = Array;
process.exitCode = 0;
var global_raise_hook_142018 = [null];
var local_raise_hook_142023 = [null];
var out_of_mem_hook_142026 = [null];
var unhandled_exception_hook_142031 = [null];
switch (0) {
default:
break;
}
Stats
- Started
2024-08-29T20:36:48
- Finished
2024-08-29T20:36:48
- Duration
1.0.10 👍 OK
Output
IR
Compiled filesize789 bytes (789 bytes)
var framePtr = null;
var excHandler = 0;
var lastJSError = null;
if (typeof Int8Array === 'undefined') Int8Array = Array;
if (typeof Int16Array === 'undefined') Int16Array = Array;
if (typeof Int32Array === 'undefined') Int32Array = Array;
if (typeof Uint8Array === 'undefined') Uint8Array = Array;
if (typeof Uint16Array === 'undefined') Uint16Array = Array;
if (typeof Uint32Array === 'undefined') Uint32Array = Array;
if (typeof Float32Array === 'undefined') Float32Array = Array;
if (typeof Float64Array === 'undefined') Float64Array = Array;
process.exitCode = 0;
var global_raise_hook_18618 = [null];
var local_raise_hook_18623 = [null];
var out_of_mem_hook_18626 = [null];
switch (0) {
default:
break;
}
Stats
- Started
2024-08-29T20:36:50
- Finished
2024-08-29T20:36:50
- Duration
??? ➡️ 🐛
Diagnostics
The commit that introduced the bug can not be found, but the bug is in the commits:
(Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
Stats
- GCC
11.4.0
- Clang
14.0.0
- NodeJS
20.4
- Created
2024-08-29T20:36:06Z
- Comments
1
- Commands
nim js -d:nodejs -d:nimExperimentalAsyncjsThen -d:nimExperimentalJsfetch --run -d:nimDebug -d:nimDebugDlOpen -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --lineTrace:off --nimcache:/home/runner/work/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
🤖 Bug found in 22 mins
bisecting 2431
commits at 110
commits per second
from nim.
@bung87 See #24031 (comment) looks like your PR introduced a bug #20548
from nim.
Could also just disallow this, not a critical regression
from nim.
Related Issues (20)
- Suboptimal for-loop transformation in regards to closure iters
- SIGSEGV: Object with pure enum in proc HOT 3
- Parameter not matched in template following symchoice changes HOT 13
- Output executable is not updated after changing build mode HOT 2
- Cast seq to string, heap buffer overflow with stdlib assuming terminating '\0' HOT 5
- Objects casting and custom destructor HOT 3
- `IndexDefect` on `--verbosity:3` when compiling nimbus HOT 1
- GeneriC $ proc fails to resolve HOT 4
- Double template invocation causes bad codegen (duplicate gensym) HOT 4
- SIGSEGV from OpenSSL when used in async context
- Unexpected behavior with range types and custom operators HOT 8
- Yielding from var fails with pairs and destructuring HOT 4
- Invalid C code generated for `lent array` in `tuple`
- Recursive concept that has a function with the same name as an existing one causes compiler to read from `nil` HOT 2
- Compiler error when passing a generic parameter restricted by some concept as a generic parameter to some type which restricts that parameter by the same concept. HOT 2
- compile-time int conversion fails in `when false` section
- Cannot instantiate `static int` with computed value
- Compiler crash on template evaluation for generic `static int` HOT 1
- Cannot compute `sizeof` generic type in alias
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nim.