Comments (2)
Hi @OlivierBlanvillain !
This is an intended semantic difference as documented here:
http://www.scala-js.org/doc/semantics.html#exceptions
Well, not exactly intended, but something I don't plan to "fix". Throwing proper NullPointerExceptions would require lots of additional runtime checks, for an exception which is not supposed to be thrown in a bug-free program anyway.
from scala-js.
It is very refreshing to read this.
from scala-js.
Related Issues (20)
- Support for "asynchronous exports" HOT 8
- String#codePoints does not compile on scala.js HOT 6
- Implement Java Streams HOT 5
- Add WebAssembly Linker Backend (with WasmGC and Wasm ExceptionHandling) HOT 12
- Assertion failed: Trying to move a local VarDef after the super constructor call of a non-native JS class HOT 4
- AnalyzerRun.WorkTracker loses track of tasks when there is a Failure
- Investigate Fishy Record Names in Optimizer Core HOT 2
- Prevent implicit conversion of A | Null to A | B HOT 1
- Wrong pretty-printing of JS tree that *starts* with an object lit
- Error while running `sbt`: bad constant pool index: 0 at pos: 48445 using Java version 21.0.1 HOT 3
- Race condition in AnalyzerRun.WorkTracker during `allowComplete()`.
- scala.util.Try does not catch `ClassCastException` HOT 1
- ConflictingTopLevelExport error reports incomplete error message
- linkerJS2_13/test spuriously fails too often on the CI (Killed)
- Locals stored as private symbols on non-native JS types breaks JS semantics HOT 3
- Improve GCC/ Minifier documentation HOT 10
- Analyzer never marks Interfaces with isAnySubclassInstantiated.
- Formatting a byte as a hexadecimal integer produces an incorrect result for a negative value HOT 4
- Generated modules export unnecessary symbols HOT 4
- Excess modules are generated HOT 11
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 scala-js.