diff --git a/__lang/boa/README.md b/__lang/boa/README.md index f1df2d6..7f440df 100644 --- a/__lang/boa/README.md +++ b/__lang/boa/README.md @@ -1,4 +1,6 @@ +Post: +- https://boa-dev.github.io/posts/2022-10-24-boa-usage/ -https://boa-dev.github.io/posts/2022-10-24-boa-usage/ - +Need resolved issue: +- https://github.com/boa-dev/boa/issues/2350 diff --git a/__lang/boa/src/main.rs b/__lang/boa/src/main.rs index 1870e85..7bcebe1 100644 --- a/__lang/boa/src/main.rs +++ b/__lang/boa/src/main.rs @@ -3,7 +3,7 @@ use boa_engine::property::Attribute; fn main() { let mut context = Context::default(); - // context.set_trace(true); + context.set_trace(true); context.register_global_property("MY_PROJECT_VERSION", "1.0.0", Attribute::all()); context.register_global_function("print", 0, print); let script = r##" @@ -14,6 +14,7 @@ fn main() { helloworld(); for (var i = 0; i < 10; i++) {} // while(true) {} + /(a+)+b/.test('a'.repeat(15) + 'c'); "hello world!!!" "##; match context.eval(script) {