Rust编写的JavaScript引擎,该项目是一个试验性质的项目。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.0 KiB

6 years ago
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "process",
"label": "Cargo Run",
"command": "cargo",
"args": ["run", "--bin", "boa", "./tests/js/test.js"],
"problemMatcher": ["$rustc"],
"group": {
"kind": "build",
"isDefault": true
},
"options": {
"env": { "RUST_BACKTRACE": "full" }
},
"presentation": {
"clear": true
}
},
{
"type": "process",
"label": "Cargo Run (Profiler)",
"command": "cargo",
"args": ["run", "--features", "Boa/profiler", "../tests/js/test.js"],
"problemMatcher": ["$rustc"],
"group": {
"kind": "build",
"isDefault": true
},
"options": {
"env": { "RUST_BACKTRACE": "full" },
"cwd": "${workspaceFolder}/boa_cli"
},
"presentation": {
"clear": true
}
},
{
"type": "process",
"label": "Get Tokens",
"command": "cargo",
"args": ["run", "--", "-t=Debug", "./tests/js/test.js"],
"problemMatcher": ["$rustc"],
"group": "build",
"presentation": {
"clear": true
}
},
{
"type": "process",
"label": "Get AST",
"command": "cargo",
"args": ["run", "--", "-a=Debug", "./tests/js/test.js"],
"problemMatcher": ["$rustc"],
"group": "build",
"presentation": {
"clear": true
}
},
{
"type": "process",
"label": "Cargo Test",
"command": "cargo",
"args": ["test"],
"problemMatcher": ["$rustc"],
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"clear": true
}
console functions (#315) * Exec do..while tests. * Parser do..while test. * Do..while loop parser and exec implementation * rustfmt fixes * Update boa/src/exec/mod.rs Co-Authored-By: HalidOdat <halidodat@gmail.com> * Use expect(), make expect() skip newlines * rustmf fixes * Revert "Use expect(), make expect() skip newlines" This reverts commit 517c4d0e065a3cd959e4aae65cc143c2a1019f1c. * Cargo Test Build task and Debug Test (Windows) launcher * First attempt at console.assert implementation. Tests are just for debugging. Run `cargo test console_assert -- --nocapture` to see stderror messages. * Refactoring - remove unnecessary map, variable rename. * Update boa/src/builtins/console.rs changes from HalidOdat Co-Authored-By: HalidOdat <halidodat@gmail.com> * Documentation fixes * Remove space from documentation comment * Update boa/src/builtins/console.rs Simplify message printing. Co-Authored-By: Iban Eguia <razican@protonmail.ch> * Update boa/src/builtins/console.rs Improve docs. Co-Authored-By: Iban Eguia <razican@protonmail.ch> * Update boa/src/builtins/console.rs Improve getting of assertion result. Co-Authored-By: Iban Eguia <razican@protonmail.ch> * rustfmt * console.count() and console.countReset() implementation * Console state as native rust type, temporarily placed in Realm. * console.time[,Log,End] methods implementation * ConsoleState as internal state in console object. * Fix merge mess * Formatter function, get_arg_at_index moved out to function * Fix merge mess, pt. 2 * console.group* functions * Moved console code to its own subdirectory, formatter tests, fixed utf-8 handling. * Most functions implemented. * Basic logger and logLevel implementation * console.group uses logger * console.dir (and at the same time dirxml) implementation * Make builtins::value::display_obj(...) public * Update boa/src/builtins/console/mod.rs Co-Authored-By: HalidOdat <halidodat@gmail.com> * Update boa/src/builtins/console/mod.rs Co-Authored-By: HalidOdat <halidodat@gmail.com> * Update boa/src/builtins/value/mod.rs Co-Authored-By: Iban Eguia <razican@protonmail.ch> Co-authored-by: HalidOdat <halidodat@gmail.com> Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 years ago
},
{
"type": "process",
"label": "Cargo Test Build",
"command": "cargo",
"args": ["test", "--no-run"],
"problemMatcher": ["$rustc"],
"group": "build"
}
]
}