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
use boa_engine::{Context,JsResult,Source};fnmain() -> JsResult<()>{let js_code = r#" let two = 1 + 1; let definitely_not_four = two + "2"; definitely_not_four "#;// Instantiate the execution contextletmut context = Context::default();// Parse the source codelet result = context.eval(Source::from_bytes(js_code))?;println!("{}", result.display());Ok(())}
Error log:
Warning: .drectve `-exclude-symbols:"_ZN6boa_gc9Collector7collect28_$u7b$$u7b$closure$u7d$$u7d$17h60a44799e69b0065E" ' unrecognized
Warning: .drectve `-exclude-symbols:"_ZN6boa_gc9Collector9mark_heap28_$u7b$$u7b$closure$u7d$$u7d$17hf422e8f5dc42d299E" ' unrecognized
Warning: .drectve `-exclude-symbols:"_ZN6boa_gc9Collector9mark_heap28_$u7b$$u7b$closure$u7d$$u7d$17h62e37aaf931a45e5E" ' unrecognized
Warning: .drectve `-exclude-symbols:"_ZN6boa_gc9Collector9mark_heap28_$u7b$$u7b$closure$u7d$$u7d$17h50da21451cc9262fE" ' unrecognized
Warning: .drectve `-exclude-symbols:"_ZN6boa_gc9Collector5sweep28_$u7b$$u7b$closure$u7d$$u7d$17h9a930f426da7cbf5E" ' unrecognized
Warning: .drectve `-exclude-symbols:"_ZN6boa_gc9Collector5sweep28_$u7b$$u7b$closure$u7d$$u7d$17ha6ed4bd618df5997E" ' unrecognized
Warning: .drectve `-exclude-symbols:"_ZN6boa_gc11GC_DROPPING7__getit28_$u7b$$u7b$closure$u7d$$u7d$17hac21f4e30ca50e8aE" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: .drectve `-exclude-symbols:_ZN17compiler_builtins3int19specialized_div_rem12u128_div_rem17ha40f2eb209d6a810E ' unrecognized
Warning: .drectve `-exclude-symbols:_ZN17compiler_builtins3int19specialized_div_rem11u64_div_rem17hbd93b43c320e28f8E ' unrecognized
Warning: corrupt .drectve at end of def file
collect2.exe: error: ld returned 5 exit status
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Use the demo code:
Error log:
OS win10 22H2
rustc 1.79.0 (129f3b996 2024-06-10)
binary: rustc
host: x86_64-pc-windows-gnu
release: 1.79.0
LLVM version: 18.1.7
Beta Was this translation helpful? Give feedback.
All reactions