Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestJSValEscaper (0.13 sec)

  1. src/html/template/js_test.go

    		t.Error("Blank tokens")
    	}
    }
    
    type jsonErrType struct{}
    
    func (e *jsonErrType) MarshalJSON() ([]byte, error) {
    	return nil, errors.New("beep */ boop </script blip <!--")
    }
    
    func TestJSValEscaper(t *testing.T) {
    	tests := []struct {
    		x        any
    		js       string
    		skipNest bool
    	}{
    		{int(42), " 42 ", false},
    		{uint(42), " 42 ", false},
    		{int16(42), " 42 ", false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 02:20:11 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top