mirror of
				https://git.proxmox.com/git/rustc
				synced 2025-10-31 14:48:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			317 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			317 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use wasm_bindgen::prelude::*;
 | |
| use wasm_bindgen_test::*;
 | |
| use web_sys::Performance;
 | |
| 
 | |
| #[wasm_bindgen]
 | |
| extern "C" {
 | |
|     #[wasm_bindgen(js_name = performance)]
 | |
|     static PERFORMANCE: Performance;
 | |
| }
 | |
| 
 | |
| #[wasm_bindgen_test]
 | |
| fn to_json() {
 | |
|     let perf = JsValue::from(PERFORMANCE.to_json());
 | |
|     assert!(perf.is_object());
 | |
| }
 | 
