This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Commit ca41476
committed
Refactor JSNumber.toDart and Object.toJS
JSNumber.toDart will now be two functions: toDartDouble and
toDartInt. Note that some code that looks like `toDart.toInt()`
was kept as `toDartDouble.toInt()` instead of `toDartInt`, since
`toDartInt` throws if the value is not an integer.
Object.toJS is now Object.toJSBox. An actual box is introduced on
all backends now, and is unwrapped in JSBoxedDartObject.toDart.
There are many usages of toJSAnyShallow that we should modify, but
that's for a later CL.1 parent c1abd1f commit ca41476
10 files changed
Lines changed: 168 additions & 173 deletions
File tree
- lib/web_ui
- lib/src/engine
- canvaskit
- skwasm/skwasm_impl
- test/engine
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
0 commit comments