mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 21:36:09 +08:00
Add an intentional panic for debug
This commit is contained in:
@@ -14,6 +14,12 @@ use editor::LayerId;
|
||||
use editor::{message_prelude::*, Color};
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
/// Intentionally panic for testing purposes
|
||||
#[wasm_bindgen]
|
||||
pub fn intentional_panic() {
|
||||
panic!();
|
||||
}
|
||||
|
||||
/// Modify the currently selected tool in the document state store
|
||||
#[wasm_bindgen]
|
||||
pub fn select_tool(tool: String) -> Result<(), JsValue> {
|
||||
|
||||
Reference in New Issue
Block a user