You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
the code running and getting the parsed article
Actual behavior
cargo run -- test.js
Finished dev [unoptimized + debuginfo] target(s) in 0.13s
Running `target/debug/boa test.js`
thread 'main' panicked at 'character was not a valid digit', boa_engine/src/builtins/number/mod.rs:611:34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
but running with RUST_BACKTRACE set to 1 or full yields a different error:
RUST_BACKTRACE=1 cargo run -- test.js
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running `target/debug/boa test.js`
Uncaught TypeError: cannot convert 'null' or 'undefined' to object
Build environment:
OS: Fedora Linux
Version: 37
Target triple: x86_64-unknown-linux-gnu
Rustc version: 1.65.0 (897e37553 2022-11-02)
Additional context
I currently abuse a webkitgtk webview to do the same thing. So I know it can work. I'm hoping boa will at some point be a better option for me :)
The text was updated successfully, but these errors were encountered:
This Pull Request fixes/closes#2717 and related to #2479
This was caused by an incorrect to digit conversion.
Here are two examples that always cause a panic. They have been added as a test in `number/test.rs`
```js
(0.1600057092765239).toString(36)
(0.23046743672210102).toString(36)
```
The error thrown is probably a runtime issue, right? We don't define a window object, since that's responsibility of the runtime, and it's the same thing for a lot of the web APIs that Postlight uses.
Describe the bug
Trying to run the
mercury.web.js
dist of postlight parser (aka mercury parser)To Reproduce
var Mercury=function() ...
dist code into a filevar html_content = ...
of a page that can be parsed by mercuryExpected behavior
the code running and getting the parsed article
Actual behavior
but running with
RUST_BACKTRACE
set to 1 or full yields a different error:Build environment:
Additional context
I currently abuse a webkitgtk webview to do the same thing. So I know it can work. I'm hoping boa will at some point be a better option for me :)
The text was updated successfully, but these errors were encountered: